【发布时间】:2021-12-17 09:04:28
【问题描述】:
我在容器中有一个图像按钮,我使用混合 mode.overlay 作为背景,但是当我刷新小部件时,混合模式失败并且只显示纯色。 我无法理解发生了什么或如何解决它。谁能给我指路?
这是我的盒子装饰码:
BoxDecoration(
shape: BoxShape.rectangle,
borderRadius: BorderRadius.all(Radius.circular(radius)),
color: color,
backgroundBlendMode: BlendMode.overlay,
);
这是我的错误的一个例子: Correct state when create a widget Wrong state after refresh widget
【问题讨论】: