feature: support for text metrics
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Flet should support text metrics to allow for more precise layout of text.
Use case: creating a 'pager' of text content where user can displays one page at a time rather than scrolling. User can pick font size, and app can know where to cut off text blocks for each screen size based on metrics
Flutter links:
https://api.flutter.dev/flutter/rendering/RenderParagraph-class.html
https://medium.com/swlh/flutter-line-metrics-fd98ab180a64
https://www.google.com/search?q=flutter+text+metrics
https://api.flutter.dev/flutter/dart-html/TextMetrics-class.html
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Flutter RenderParagraph and text-metrics references to understand the metrics the feature should expose. Then determine the required Flet API and its cross-platform scope; done means an agreed implementation path for measuring text and using those metrics for paginated layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100