Sirens waked as the nation fell silent today on April 4, 2020-04. Honor the dead, remember the dead. Many APPS, websites have become gray, such as nuggets. This article looks at how the global ashes of Flutter are implemented. Since the display layers in Flutter are widgets, a single line of code is sufficient.
Make a date with you for spring
Flutter Unit is an app designed by Zhang Fengjie to learn about Flutter. It is expected to be completed in April, and will be open source by then (currently not open source).
— | — |
---|---|
Two, APP ash treatment
— | — |
---|---|
Iii. Here are the main characters of this paper:ColorFiltered: ColorFiltered
— | — |
---|---|
Just put it on the outermost layer.
runApp(
ColorFiltered(
colorFilter: ColorFilter.mode(Colors.white, BlendMode.color),
child: FlutterApp())));
Copy the code
This discovery was a very unexpected coincidence. It’s a happy accident. Originally I thought it was a bug, but it turned out to be a feature. At that time was in the canvas drawing, need to draw a white cloth, did not expect to make the whole page completely gray.