Add FittedBox for Autoscaling
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 17k
- Forks
- 694
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 33
Description
Discussed in https://github.com/flet-dev/flet/discussions/4092
Originally posted by Dejv311 October 3, 2024
I am trying to figure out how to scale text to screen width. (i.e. text should cover the entire width of the screen - the size of the text should be set accordingly). I found this flutter solution: FittedBox.
https://api.flutter.dev/flutter/widgets/FittedBox-class.html
Looking further into FittedBox I have to say it is truly amazing and should be added into Flet. What do you guys think?
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 with discussion #4092 and the Flutter FittedBox documentation linked in the issue to understand the requested behavior. Determine how Flet exposes comparable UI controls, then verify that the feature supports autoscaling text to the available screen width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flutter, python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100