Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Increase size of AppBar leading property in flutter?

I'm trying to add my custom text button into AppBar leading property. However when the text gets too long then it end up in multi lines.How to solve this problem ?

like image 612
MD MEHEDI HASAN Avatar asked Nov 25 '25 17:11

MD MEHEDI HASAN


1 Answers

Adds leadingWidth property in AppBar and SliverAppBar to customize width of leading widget. By default, the value of leadingWidth will be 56.0 to follow Material specs.

Example usage:

AppBar(
title: const Text('Title'),
 leading: Placeholder(color: Colors.white),
 leadingWidth: 100,
)
like image 85
MD MEHEDI HASAN Avatar answered Nov 28 '25 12:11

MD MEHEDI HASAN



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!