记录flutter gallery-master官方项目 遇到的两个bug

最近研究flutter web,下载了官方项目,遇到了两个bug

Because gallery depends on flutter_localizations from sdk which depends on intl 0.18.0, intl 0.18.0 is required. So, because gallery depends on intl ^0.17.0, version solving failed.

解决方法:
pubspec.yaml文件 修改 intl版本 ^0.17.0 -> ^0.18.0

'AssetManifest' is imported from both 'package:flutter/src/services/asset_manifest.dart' and 'package:google_fonts/src/asset_manifest.dart'. import 'asset_manifest.dart';

解决办法:
pubspec.yaml 修改 google_fonts版本 ^3.0.1 -> ^4.0.1

以上,项目就能运行起来了

image

本文作者:懵懂的梦旅人

本文链接:https://www.cnblogs.com/drink-together/p/17754114.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   懵懂的梦旅人  阅读(292)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起