image - 如何在颤振中添加图像
问题描述
我在添加图像时遇到问题...我的代码是
child: Column(
children: [
Image.asset('assets/logo.jpg'),
Text('This is SplashScreen')
]
),
但还没有工作..我还启用了 pubspec.yamel assets commnet 但没有改变任何东西
解决方案
确保您在主树中有一个资产文件夹,而不是嵌套在另一个文件夹中。
推荐阅读
- eclipse-cdt - 禁止“未使用的函数声明”警告 GCC
- java - 具有 Apache CXF 和基本身份验证的 Quarkus Web 服务
- azure - 创建 Azure 容器注册表任务时如何引用文件夹中的 Dockerfile?
- macros - 移动到 ImageJ 宏中的上一个图像
- swiftui - SwiftUI - 使用自定义视图覆盖 TabView
- python - Pygame - 鼠标移动时变换屏幕
- c# - C# Form 在新检测到的记录上多次打开
- javascript - Gun 如何在有时断开的 P2P 网络中管理用户
- javascript - 如何从给定日期获取前一周的特定日期?
- python - 具有任意顶点数的图中的循环检测