颤动线性渐变颜色问题

flutter linear gradient color issue

flutter linear gradient color 中,我不知道我做了什么,如何捕捉颜色过渡的柔和度?这个问题只存在于android模拟器中,在ios模拟器中没有问题。

gradient: new LinearGradient(
          colors: [Color(0xFF0f1129), Color(0xFF213259)],
          begin: Alignment.bottomCenter,
          end: Alignment.topCenter,
          stops: [0.0, 1.0],`enter code here`
          tileMode: TileMode.clamp),

在你的 main() 中添加这一行使其更柔和,

void main(){
  Paint.enableDithering = true;
  ...