# text_composition **Repository Path**: jason_xuj/text_composition ## Basic Information - **Project Name**: text_composition - **Description**: flutter小说 文字分页及翻页效果插件. - **Primary Language**: Dart - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2023-05-31 - **Last Updated**: 2024-03-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # text_composition flutter 中文排版 分页 上下对齐 两端对齐 多栏布局 弃用 richText,使用 Canvas,精确定位绘图位置,消除字体对排版影响 # 引用方法 ``` text_composition: git: url: https://gitee.com/jason_xuj/text_composition.git ``` # 视频与截图 ### demo ### 视频 https://user-images.githubusercontent.com/19526331/112481313-d8258f00-8db1-11eb-8faf-d96a7188116a.mp4 ## LICENSE [GPL-3.0 License](LICENSE) ## 特点 - [x] 中文英文符号混排两端对齐 - [x] 支持非等高字体 - [x] 支持非等宽字体 - [x] 按容器高度分页 - [x] 上下分散对齐 - [x] 多栏布局 - [x] 翻页切换动画 - [x] 页面阴影 - [x] 键盘响应 - [x] 支持标题`title`与样式`titleStyle` - [x] 支持链接`link`和样式`linkStyle` - [ ] `link`点击事件 - [ ] 图片 ## example `/example/lib/main.dart` ~~字体会影响显示效果~~ 使用 canvas 绘图 不受字体影响 任意字体都可以上下对齐 两端对齐 `windows`自带字体效果(非等宽 非等高) ![image](https://user-images.githubusercontent.com/19526331/109809275-145a4980-7c63-11eb-8d5e-f3a8047b54f8.png) `腾祥嘉丽.ttf`字体效果 ![E3Z@FG25IXJ)I 6Y1(HDD$W](https://user-images.githubusercontent.com/19526331/109742072-5b1b5580-7c09-11eb-81d1-04e692424d35.png) ![$}C 5XZ6BHL_3X}HCSXHPGV](https://user-images.githubusercontent.com/19526331/109742094-666e8100-7c09-11eb-9c97-979a70c7222a.png)