[英]How to Overlap Two Widgets in Flutter?
您不需要重疊它們或使用堆棧小部件,CircleAvatar將為您處理此問題。
CircleAvatar(backgroundColor: contentWithIcon[value]['color'],
child: Image.asset("assets/img/forex.png "),)
確保pubspec.yaml中添加了assets文件夾
assets:
- assets/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.