backdropBrightness method
backdrop-brightness - 背景亮度
Implementation
Widget backdropBrightness(double value) {
return ColorFiltered(
colorFilter: ColorFilter.matrix([
1.0 * value, 0, 0, 0, 0,
0, 1.0 * value, 0, 0, 0,
0, 0, 1.0 * value, 0, 0,
0, 0, 0, 1, 0,
]),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 0, sigmaY: 0),
child: build(),
),
);
}