Flutter 實現(xiàn)整個App變?yōu)榛疑姆椒ㄊ纠?/h1>
更新時間:2020年04月04日 12:07:14 作者:老孟程序員
這篇文章主要介紹了Flutter 實現(xiàn)整個App變?yōu)榛疑姆椒ㄊ纠闹型ㄟ^示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
在Flutter中實現(xiàn)整個App變?yōu)榛疑欠浅:唵蔚?,只需要在最外層的控件上包裹ColorFiltered,用法如下:
@override
Widget build(BuildContext context) {
return ColorFiltered(
colorFilter: ColorFilter.mode(Colors.grey, BlendMode.color),
child: Scaffold(
appBar: _appBar,
body: IndexedStack(
index: _currIndex,
children: <Widget>[HomeItemPage(), WidgetPage(), MyPage()],
),
backgroundColor: Theme.of(context).backgroundColor,
bottomNavigationBar: _buildBottomNavigationBar(context),
));
}
前后效果對比如下:
到此這篇關于Flutter 實現(xiàn)整個App變?yōu)榛疑姆椒ㄊ纠奈恼戮徒榻B到這了,更多相關Flutter App變?yōu)榛疑珒热菡埶阉髂_本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
-
android利用ContentResolver訪問者獲取手機短信信息
本篇文章主要介紹了android利用ContentResolver訪問者獲取手機短信信息,具有一定的參考價值,感興趣的小伙伴們可以參考一下。
2017-02-02
-
FlowLayout流式布局實現(xiàn)搜索清空歷史記錄
這篇文章主要為大家詳細介紹了FlowLayout流式布局實現(xiàn)搜索清空歷史記錄,具有一定的參考價值,感興趣的小伙伴們可以參考一下 2018-12-12
-
Android打開GPS導航并獲取位置信息返回null解決方案
最近在做一個 Android 項目,需要用到GPS獲取位置信息,從 API 查了一下,發(fā)現(xiàn)獲取位置信息僅需極其簡單的一句即可getLastKnownLocation(LocationManager.GPS_PROVIDER)郁悶的是一直為null,于是搜集整理下,曬出來與大家分享 2013-01-01
最新評論
在Flutter中實現(xiàn)整個App變?yōu)榛疑欠浅:唵蔚?,只需要在最外層的控件上包裹ColorFiltered,用法如下:
@override
Widget build(BuildContext context) {
return ColorFiltered(
colorFilter: ColorFilter.mode(Colors.grey, BlendMode.color),
child: Scaffold(
appBar: _appBar,
body: IndexedStack(
index: _currIndex,
children: <Widget>[HomeItemPage(), WidgetPage(), MyPage()],
),
backgroundColor: Theme.of(context).backgroundColor,
bottomNavigationBar: _buildBottomNavigationBar(context),
));
}
前后效果對比如下:
到此這篇關于Flutter 實現(xiàn)整個App變?yōu)榛疑姆椒ㄊ纠奈恼戮徒榻B到這了,更多相關Flutter App變?yōu)榛疑珒热菡埶阉髂_本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
android利用ContentResolver訪問者獲取手機短信信息
本篇文章主要介紹了android利用ContentResolver訪問者獲取手機短信信息,具有一定的參考價值,感興趣的小伙伴們可以參考一下。2017-02-02
FlowLayout流式布局實現(xiàn)搜索清空歷史記錄
這篇文章主要為大家詳細介紹了FlowLayout流式布局實現(xiàn)搜索清空歷史記錄,具有一定的參考價值,感興趣的小伙伴們可以參考一下2018-12-12
Android打開GPS導航并獲取位置信息返回null解決方案
最近在做一個 Android 項目,需要用到GPS獲取位置信息,從 API 查了一下,發(fā)現(xiàn)獲取位置信息僅需極其簡單的一句即可getLastKnownLocation(LocationManager.GPS_PROVIDER)郁悶的是一直為null,于是搜集整理下,曬出來與大家分享2013-01-01

