[英]How to change the background of the flutter app default icon?
這是您的強調色的一部分,因此您需要在MaterialApp()
小部件中添加primaryColor
例如
MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: Colors.lightGreen,//here it goes try changing this to your preferred colour
accentColor: Colors.green.shade800,
),
home: StartScreen(),
routes: {
'/home': (context) => Home(),
},
)
如果你想改變你的背景或適合你的圖標然后轉到(android/app/src/main/res)並右鍵單擊和 go 到new/Image Asset
然后 android studio 打開一個圖像資產配置框你必須改變路徑並自定義您想要的圖標。
或者
如果您想要更改 flutter 應用程序圖標或想要添加您的自定義圖標,請按照以下步驟操作:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.