{"id":21247411,"url":"https://github.com/mabdc/text_composition","last_synced_at":"2025-06-21T07:07:51.989Z","repository":{"id":51361421,"uuid":"342871254","full_name":"mabDc/text_composition","owner":"mabDc","description":"flutter 中文排版，支持分页上下对齐 两端对齐 翻页动画","archived":false,"fork":false,"pushed_at":"2021-04-12T11:22:48.000Z","size":13111,"stargazers_count":68,"open_issues_count":5,"forks_count":22,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-05T15:48:09.116Z","etag":null,"topics":["chinese","composition","curl","flutter","pageturn","text"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mabDc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-27T14:07:23.000Z","updated_at":"2025-04-28T02:36:46.000Z","dependencies_parsed_at":"2022-09-24T22:40:15.979Z","dependency_job_id":null,"html_url":"https://github.com/mabDc/text_composition","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mabDc/text_composition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabDc%2Ftext_composition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabDc%2Ftext_composition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabDc%2Ftext_composition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabDc%2Ftext_composition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mabDc","download_url":"https://codeload.github.com/mabDc/text_composition/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mabDc%2Ftext_composition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261080623,"owners_count":23106602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chinese","composition","curl","flutter","pageturn","text"],"created_at":"2024-11-21T02:33:26.324Z","updated_at":"2025-06-21T07:07:46.976Z","avatar_url":"https://github.com/mabDc.png","language":"Dart","readme":"# text_composition\n\nflutter 中文排版 分页 上下对齐 两端对齐 多栏布局\n\n弃用richText，使用Canvas，精确定位绘图位置，消除字体对排版影响\n\n# 视频与截图\n\n### demo https://github.com/mabDc/text_composition/releases/tag/0.0.5\n\n### 视频 https://user-images.githubusercontent.com/19526331/112481313-d8258f00-8db1-11eb-8faf-d96a7188116a.mp4\n\n\u003cimg src=\"https://user-images.githubusercontent.com/19526331/113877556-66a30300-97eb-11eb-8b01-825d5eb11662.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113877580-6c004d80-97eb-11eb-9561-c93be18a15b2.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113876862-ba611c80-97ea-11eb-99db-169f7380514d.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113876870-bd5c0d00-97ea-11eb-959e-c5cde58bec7d.jpg\" width=\"200\"\u003e \n\n\u003cimg src=\"https://user-images.githubusercontent.com/19526331/113878095-e0d38780-97eb-11eb-801a-1b3c08a13f7d.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113877800-a0740980-97eb-11eb-9ffe-ec83276e7f61.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113877807-a23dcd00-97eb-11eb-99f5-973431a412b9.jpg\" width=\"200\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/113877823-a4a02700-97eb-11eb-8c64-3a8f354a1d76.jpg\" width=\"200\"\u003e \n\n\u003cimg src=\"https://user-images.githubusercontent.com/19526331/114257783-c3bdd500-99f4-11eb-9167-5c42c846f147.jpg\" width=\"400\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/114257762-af79d800-99f4-11eb-9a47-6095cdd6e42f.jpg\" width=\"400\"\u003e\n\n\u003cimg src=\"https://user-images.githubusercontent.com/19526331/114257767-b56fb900-99f4-11eb-8948-6d5aa4c51e3b.jpg\" width=\"400\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/19526331/114257769-b86aa980-99f4-11eb-9f37-54a3a0bd95d6.jpg\" width=\"400\"\u003e\n\n## 特点\n\n- [x] 中文英文符号混排两端对齐\n- [x] 支持非等高字体\n- [x] 支持非等宽字体\n- [x] 按容器高度分页\n- [x] 上下分散对齐\n- [x] 多栏布局\n- [x] 翻页切换动画\n- [x] 页面阴影\n- [x] 键盘响应\n- [x] 支持标题`title`与样式`titleStyle`\n- [x] 支持链接`link`和样式`linkStyle`\n- [ ] `link`点击事件\n- [ ] 图片\n\n## example\n\n`/example/lib/main.dart`\n\n~~字体会影响显示效果~~ \n\n使用canvas绘图 不受字体影响 任意字体都可以上下对齐 两端对齐\n\n`windows`自带字体效果（非等宽 非等高）\n\n![image](https://user-images.githubusercontent.com/19526331/109809275-145a4980-7c63-11eb-8d5e-f3a8047b54f8.png)\n\n\n`腾祥嘉丽.ttf`字体效果\n\n![E3Z@FG25IXJ)I 6Y1(HDD$W](https://user-images.githubusercontent.com/19526331/109742072-5b1b5580-7c09-11eb-81d1-04e692424d35.png)\n\n\n![$}C 5XZ6BHL_3X}HCSXHPGV](https://user-images.githubusercontent.com/19526331/109742094-666e8100-7c09-11eb-9c97-979a70c7222a.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabdc%2Ftext_composition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmabdc%2Ftext_composition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmabdc%2Ftext_composition/lists"}