Just add it like below:
Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
image: DecorationImage(
image: CachedNetworkImageProvider('your_image'),
fit: BoxFit.cover,
),
boxShadow: const [
BoxShadow(
color: Color.fromARGB(255, 0, 0, 0),
blurRadius: 2.0,
spreadRadius: 0.0,
offset: Offset(1, 1), //
),
]));
请将您的容器小部件包装在卡片中并使用卡片的海拔属性。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.