![](/img/trans.png)
[英]Flutter: How to use animated icon in the AppBar - I want to use this animated icon instead of Animatedless Icon, in the appbar of flutter app
[英]how can i use Icon Image in AppBar
您確定在assets/images
文件夾中添加avatar1.png
並在pubspec.yaml
中添加以下行
flutter:
assets:
- assets/images/
我有一個類似的問題,這就是我解決它的方法icon: Image.assets('images/avatar1.png')
可能是因為圖片大小
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.