【发布时间】:2020-06-15 06:41:09
【问题描述】:
所以我一直在为此苦苦挣扎,但问题是每当我在我的 ui 中添加图像时,它都会显示白色背景,即使它应该是透明的,我也检查了我的 pubspec.yaml 文件并且图像很好导入,但我只是不知道为什么它将透明背景显示为白色
GestureDetector(
onTap: () {},
child: Container(
child: Image.asset("assets/send.png"),
padding: EdgeInsets.all(10),
height: 40,
width: 40,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(40),
gradient: LinearGradient(
colors: [Colors.blue, Colors.lightBlue])),
),
)
这是我正在编写的代码,图像显示如下: The image that has a transparent background has a white background now for some reason
任何帮助将不胜感激,非常感谢您的阅读。
【问题讨论】: