backdropSepia method
backdrop-sepia - 背景棕褐色调
Implementation
Widget backdropSepia([double amount = 1.0]) {
return ColorFiltered(
colorFilter: ColorFilter.matrix([
0.393 + 0.607 * (1 - amount), 0.769 - 0.769 * (1 - amount), 0.189 - 0.189 * (1 - amount), 0, 0,
0.349 - 0.349 * (1 - amount), 0.686 + 0.314 * (1 - amount), 0.168 - 0.168 * (1 - amount), 0, 0,
0.272 - 0.272 * (1 - amount), 0.534 - 0.534 * (1 - amount), 0.131 + 0.869 * (1 - amount), 0, 0,
0, 0, 0, 1, 0,
]),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 0, sigmaY: 0),
child: build(),
),
);
}