【发布时间】:2019-08-08 03:52:06
【问题描述】:
我要求的是在 appBar 中添加一个图标在颤振中......我已经激活了本地化属性,所以我的应用程序现在是 RTL
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
supportedLocales: [
Locale("ar", "AR"), // OR Locale('ar', 'AE') OR Other RTL locales
],
locale: Locale("ar", "AR"), // OR Locale('ar', 'AE') OR Other RTL locales
...问题是右侧的抽屉菜单图标是正确的...但是当我在 appBar 的前导属性中添加图标时,它不会转到左侧...但它取代了抽屉图标! !!
// 应用栏
appBar: new AppBar(
leading: Icon(Icons.person,),
title: new Text("الرئيسية",
style: new TextStyle(fontFamily: 'RPT Bold',
fontSize: 16.0,
color: Colors.amber
),
),
centerTitle: true,
iconTheme: new IconThemeData(color: Colors.amber),
),
最好的问候
【问题讨论】:
-
这可能值得an issue。
标签: android ios flutter flutter-layout appbar