Open GitGud31 opened 1 year ago
use a LayoutBuilder to get the max width and center the header in a sized box
Simple, and works if the user spins around the device ;)
...
header: SizedBox(
width: MediaQuery.of(context).size.width,
child: const Center(
child: Icon(
Icons.remove,
size: 32,
),
),
),
...
Describe the bug Seems like the header can't be centered
Smartphone (please complete the following information):
Sample
main.dart