当前位置:网站首页>Type 'image' is not a subtype of type 'imageprovider < object > solution
Type 'image' is not a subtype of type 'imageprovider < object > solution
2022-06-27 13:37:00 【Seeking knowledge [email protected]】
problem :
flutter BoxDecoration The error code for setting the page background image is as follows :
decoration:
BoxDecoration( image: DecorationImage(image: _image) ),to image Property specifies that the picture is Image.asset:
get _image => Image.asset('asset/images/loginpageback.jpg');Report errors :
type 'Image' is not a subtype of type 'ImageProvider<Object>resolvent :
hold ImageAsset Change to AssetImage:
image: DecorationImage(
image: AssetImage('asset/images/loginpage/loginpageback.jpg'),
fit: BoxFit.cover
),So that we don't make a mistake
版权声明
本文为[Seeking knowledge [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202161637133140.html
边栏推荐
- Half find (half find)
- Quickly set up a website to visit foreign countries, set up SS and start BBR to quickly surf the Internet
- 云原生(三十) | Kubernetes篇之应用商店-Helm
- ENSP cloud configuration
- Yuweng information, a well-known information security manufacturer, joined the dragon lizard community to build an open source ecosystem
- Interviewer: do you understand redis' shared object pool?
- Bluetooth health management device based on stm32
- Postman如何设置成中文?(汉化)
- Infiltration learning diary day20
- Tiktok practice ~ public / private short video interchange
猜你喜欢
随机推荐
防火墙基础之华为华三防火墙web页面登录
Make learning pointer easier (1)
buuctf misc 百里挑一
Cloud native (30) | kubernetes' app store Helm
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
Pre training weekly issue 51: reconstruction pre training, zero sample automatic fine tuning, one click call opt
Does Xinhua San still have to rely on ICT to realize its 100 billion enterprise dream?
快速搭建一个自己的访问国外网站,搭建ss并开启bbr快速上网
[medical segmentation] unet3+
POSIX AIO -- glibc 版本异步 IO 简介
How to split microservices
清楚的自我定位
Good luck today
【Acwing】第57场周赛 题解
Yyds dry goods inventory solution sword finger offer: cut rope (advanced version)
Shell concise tutorial
CMOS级电路分析
Postman如何设置成中文?(汉化)
What kind of air conditioner is this?
crane:字典项与关联数据处理的新思路






![[medical segmentation] unet3+](/img/93/1e9728a3dbebbf3bd9ce015552ce7a.jpg)
![[dynamic programming] - Knapsack Problem](/img/27/c48284f15e3f80305d7ce7c02d4378.png)
