【发布时间】:2019-04-10 03:41:34
【问题描述】:
有没有办法消除 CupertinoNavigationBar 的模糊,使其真正透明?我摆脱了边框和颜色,但有一个模糊,对于 android AppBar 没有任何模糊,但对于 iOS AppBar 它就在那里。我检查了它的代码,并有一个 ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0) 应用于它,但我该如何删除它?
代码:
CupertinoNavigationBar(
backgroundColor: Colors.transparent,
border: Border.all(
color: Colors.transparent,
width: 0.0,
style: BorderStyle.none
),
leading: IconButton(
icon: Icon(
Icons.close,
color: Colors.red,
),
onPressed: () {
Navigator.pop(context);
}),
automaticallyImplyLeading: false,
trailing: IconButton(
icon: Icon(
Icons.refresh,
color: Colors.blue,
),
onPressed: widget.onRestart
),
),
【问题讨论】:
标签: ios flutter flutter-layout