今天清明节,看了大部分的网页都变灰了,看了下变灰是怎么处理的,主要是这个css 属性:
css置灰
filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray;
flutter 置灰:
main.dart中修改
runApp( ColorFiltered( colorFilter: ColorFilter.mode(Colors.white, BlendMode.color), child: FlutterApp())));