颤振梯度问题
Flutter gradient issues
Flutter gradient issues
当我放置特定颜色时我遇到了渐变问题,但是当我放置默认颜色时,例如 Colors.blue,然后它就解决了,当我从颜色中删除不透明度时,这就是为什么下面的两种颜色没有这个问题。
问题是我必须使用设计师给我的颜色。
body: Container(
// height: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: [0.0, 0.54, 1.0],
colors: [
Color(0xFF00092B),
Color(0xE0001D5E),
Color(0xC722004D),
],
// tileMode: TileMode.clamp
)
),
),
你的渐变使用 DartPad 看起来不错:https://www.dartpad.dev/b6409e10de32b280b8938aa75364fa7b?
这可能是您的模拟器屏幕正在播放。
Flutter gradient issues
当我放置特定颜色时我遇到了渐变问题,但是当我放置默认颜色时,例如 Colors.blue,然后它就解决了,当我从颜色中删除不透明度时,这就是为什么下面的两种颜色没有这个问题。 问题是我必须使用设计师给我的颜色。
body: Container(
// height: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: [0.0, 0.54, 1.0],
colors: [
Color(0xFF00092B),
Color(0xE0001D5E),
Color(0xC722004D),
],
// tileMode: TileMode.clamp
)
),
),
你的渐变使用 DartPad 看起来不错:https://www.dartpad.dev/b6409e10de32b280b8938aa75364fa7b?
这可能是您的模拟器屏幕正在播放。