我要的是在flapp的appBar中添加一个图标...我已经激活了本地化属性,所以我的应用程序是RTL Now
$allowedL = 155;
$path = $SERVER['REQUEST_URI'];
if ( strlen($path) > $allowedL ) die();
...问题是右侧的抽屉菜单Icon正确...但是当我在appBar的前导属性中添加Icon时,它并没有移到左侧...而是替换了抽屉Icon! !!
// AppBar
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
最诚挚的问候
答案 0 :(得分:0)
将automaticallyImplyLeading
设置为false:
appBar: new AppBar(
automaticallyImplyLeading: false,
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),
),