![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Flutter常见解决方案
a457636876
这个作者很懒,什么都没留下…
展开
-
The ‘Pods-Runner‘ target has libraries with conflicting names: libwechatsdk.a.
Flutter 引入 sharesdk_plugin ,IOS项目 pod install 报错误如下The 'Pods-Runner' target has libraries with conflicting names: libwechatsdk.a.解决方案:找到Flutter拉取sharesdk_plugin库的路径,如/Volumes/data/flutter_sdk/.pub-cache/hosted/pub.flutter-io.cn/sharesdk_plugin-1.2.9打原创 2021-03-07 18:05:59 · 3487 阅读 · 0 评论 -
Flutter开发常见问题
Flutter开发常见问题Flutter URL编码转换var uri = 'http://example.org/api?foo=some message';var encoded = Uri.encodeFull(uri);assert(encoded == 'http://example.org/api?foo=some%20message');var decoded = Uri.decodeFull(encoded);assert(uri == decoded);DIO详细使用教程原创 2021-01-04 12:59:39 · 901 阅读 · 0 评论 -
Dart 关闭 `omit type annotations for local variables` 提示
在 analysis_options.yaml 文件添加如下:analyzer: errors: omit_local_variable_types: ignore然后Ide重新关闭在打开即可。原创 2020-11-21 23:17:48 · 402 阅读 · 0 评论 -
Flutter IOS报 NoMethodError - undefined method `size‘ for nil:NilClass
运行一下命令,即可解决flutter cleanrm -Rf ios/Podsrm -Rf ios/.symlinksrm -Rf ios/Flutter/Flutter.frameworkrm -Rf ios/Flutter/Flutter.podspec原创 2020-10-20 19:23:34 · 700 阅读 · 0 评论 -
‘XXX‘ is missing one or more architectures required by this target: armv7.
XCode报错提示The linked and embedded framework ‘XXX’ is missing one or more architectures required by this target: armv7.解决方法原创 2020-10-14 21:32:40 · 12637 阅读 · 0 评论 -
Flutter 使用 LayoutBuilder 频繁Build
return LayoutBuilder(builder: (ctx, constraints) { /// 这里返回出去的Widget,如果超出显示大小,一旦刷新时,这里就会频繁build。 /// 解决方案: /// 第一次Build的时候,把constraints,保存为成员变量。 /// 第二次不再通过LayoutBuilder获取constraints。 });解决方案:return LayoutBuilder(builder: (ctx, cons原创 2020-06-08 10:30:27 · 1266 阅读 · 0 评论 -
解决AndroidStudio-Flutter项目用Dio加载出现404,500错误导致断点
原创 2020-06-08 10:24:10 · 1822 阅读 · 0 评论 -
flutter 使用 Intl 包,Windows用户执行命令,出现 Cannot open file 解决方案
关于flutter使用Intl包教程:https://www.jianshu.com/p/82c6656462b8flutter pub pub run intl_translation:generate_from_arb --output-dir=lib/l10n \ --no-use-deferred-loading lib/app_strings.dart lib/l10n/int...原创 2019-11-19 18:28:49 · 1713 阅读 · 1 评论