flet-dev / flet-dev/flet

Add FittedBox for Autoscaling

Open
#4,109 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.