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 ?
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,
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With