[英]How to center the title of an AppBar with theme [FLUTTER]
我想將我的應用程序中的所有標題都以theme
為center
,有辦法嗎?
使用主題居中應用欄
theme: ThemeData(
appBarTheme: AppBarTheme(centerTitle: true),),
使用centerTitle: true
appBar: AppBar(
centerTitle: true,
title: Text("Appbar Title"),
),
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.