android - 如何修复不在颤振中心的应用栏
问题描述
当我打开我的重新订购页面时,我的应用栏标题由于后退按钮而不是中心,所以我想知道如何让应用栏始终居中,以便与其他屏幕相同。
任何帮助或建议将不胜感激。
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),
),
],
),
),
解决方案
推荐阅读
- c# - 如何获取带有测试结果的标准 xUnit v2 XML 文件
- python - 在 Python 上从列表转换为字符串时出现意外行为
- reactjs - Redux 变量被认为是 null 但出现在控制台中
- javascript - 无法访问函数内的全局变量(Javascript)
- beautifulsoup - 我无法从 bs4 中的属性范围获取文本
- blazor - Blazor WebAssembly 路由弄乱了 NavLink
- firebase - 每个文档颤动的 Firebase-firestore 安全规则
- python - Kivy (MD) - 分离 Kivy 类时如何访问类属性?
- javascript - 浏览器返回后如何保持数据反应
- swift - Laravel Swift 添加 UUID