简体   繁体   中英

Flutter low quality blured widgets

I have the following design for a background of an app and would like to implement it in Flutter: 背景

My question is now what is the best way to implement it. Because I have tried to implement it with a BackdropFilter, but then it looks in the app itself not so good and more like poor quality:

实际应用

I think what you're searching for is a RadialGradient . Here's how you use it with a Container 's BoxDecoration :

Container(
            decoration: const BoxDecoration(
              gradient:  RadialGradient(
                colors: [
                  Colors.red,
                  Colors.blue,
                ],
              )
            )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM