flutter 渐变色
2023-07-16 本文已影响0人
neobuger
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
gradient: LinearGradient(
colors: [
Color(0xffA7B3FB),
Color(0xffF4F9FF),
Color(0xffFFFFFF)
],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
)
),