英文:
Flutter: Unable to load assets for flutter_map
问题
I'm building an app where I embed a map using flutter_map.
我正在构建一个应用程序,在其中嵌入了一个使用flutter_map的地图。
I have downloaded offline tiles, but they cannot be loaded from the assets folder because the following error appears: Error.
我已经下载了离线瓦片,但它们无法从资产文件夹加载,因为出现了以下错误:错误。
flutter_map itself gives the following errors: Error.
flutter_map本身出现了以下错误:错误。
My main.dart file: Main Dart File.
我的main.dart文件:主要Dart文件。
My pubspec.yaml file: Pubspec.yaml.
我的pubspec.yaml文件:Pubspec.yaml。
My folder structure:
我的文件夹结构:
英文:
I'm building an app where I embed a map using flutter_map.
I have downloaded offline tiles, but they cannot be loaded from the assets folder because the following error appears: Error.
flutter_map itself gives the following errors: Error
My main.dart file: Main Dart File
My pubspec.yaml file: Pubspec.yaml
My folder structure:
答案1
得分: 0
找到了一个,不太好但功能正常的解决方案:
我已经分别添加了每个子文件夹。
英文:
Found a, unfortunately not so great, but functional solution:
I have added each subfolder individually.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论