Issue
Is there any way of increasing height of app bar according to safe area in flutter cause the text in Center looks weird.
Solution
Yes you can do this like using below code. Put PreferredSize widget as a parent of AppBar and set a height.
appBar: PreferredSize(
preferredSize: Size.fromHeight(150.0),
child: AppBar(
title: Text('appbar'),
),
),
Answered By - Salim Murshed
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.