flet-dev / flet-dev/flet

feature: support for text metrics

Open
#130 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.