我如何在Flutter中为AppBar
使用BackdropFilter
?当我将其用于AppBar
时,其他在Scaffold
中的小部件也会变模糊,而不仅仅是AppBar
。
例如:
BackdropFilter(
filter: ImageFilter.blur(
sigmaX: 5,
sigmaY: 5
),
child: AppBar(
automaticallyImplyLeading: false,
// Used for removing back button.
elevation: 8.0,
titleSpacing: 0.0,
backgroundColor: theme.appMainColor,
title: Stack(
children: <Widget>[
],
)),
),