Hellow!
是否有解决方案可以创建在起始颜色和结束颜色之间平滑过渡的 LinearGradient?
new Container(
decoration: new BoxDecoration(
gradient: new LinearGradient(
colors: [
Colors.black,
Colors.grey,
],
stops: [0.0, 1.0],
begin: FractionalOffset.topCenter,
end: FractionalOffset.bottomCenter,
tileMode: TileMode.repeated
)
),
)
在你的主要功能集中Paint.enableDithering = true;
就像下面这样:
别忘了restart the app
void main() {
Paint.enableDithering = true;
runApp(DesignChallenge05());
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)