Skip to content
Discussion options

You must be logged in to vote

Simply just wrap your Text widget to FittedBox widget like, Here I want to resize my AppBar text based on width.
AppBar( centerTitle: true, title: FittedBox( fit: BoxFit.fitWidth, child: Text('Hey this is my long text appbar title') ), ),
Text will be resized based on width of AppBar.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by metabrainiac
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussions GitHub Discussions is a collaborative communication feature Question Ask and answer questions about GitHub features and usage
2 participants