[英]How to fix an app bar that is not center in flutter
when ever I open my Reorders page, my app bar title is not center because of the back button so I'm wondering how can I make the app bar to always center like so that it will be the same with other screens.当我打开我的重新排序页面时,由于后退按钮,我的应用栏标题不居中,所以我想知道如何使应用栏始终居中,以便与其他屏幕相同。
Any Help or suggestion will be really appreciated.任何帮助或建议将不胜感激。
appBar: AppBar(
centerTitle: true,
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
"Maxis",
style:
TextStyle(fontFamily: "Raleway", fontWeight: FontWeight.w300),
),
Image.asset(
"assets/images/maxis.png",
width: 30,
),
Text(
"Mobile",
style:
TextStyle(fontFamily: "Raleway", fontWeight: FontWeight.w300),
),
],
),
),
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.