Flutter-渐变色

return new Scaffold(

key:_loginKey,

body: Container(

constraints: BoxConstraints.expand(),

decoration: BoxDecoration(

gradient: LinearGradient(

colors: [colorLight,colorRegular],

begin: Alignment.topCenter,

end: Alignment.bottomCenter)),

)

);

你可能感兴趣的:(Flutter-渐变色)