以下为学习Flutter遇到的问题,一集解决方案,留作笔记,用以后期学习过程中解决。
报错信息:
A SingleTickerProviderStateMixin can only be used as a TickerProvider once.
If a State is used for multiple AnimationController objects, or if it is passed to other objects and those objects might use it more than one time in total, then instead of mixing in a SingleTickerProviderStateMixin, use a regular TickerProviderStateMixin.
解决方案:
用 TickerProviderStateMixin 替换 SingleTickerProviderStateMixin;
报错信息:
dyld: Library not loaded: @rpath/App.framework/App
Referenced from: /Users/loseboy/Library/Developer/CoreSimulator/Devices/37368366-A391-4D52-B11D-52B70E66849E/data/Containers/Bundle/Application/ED19754F-C00E-413F-B0E7-1DA7BD408DC7/Runner.app/Runner
Reason: image not found
(lldb)
解决方案:
报错信息:
Trying to embed a platform view but the PrerollContext does not support embedding
解决方案:
在 [project_name]/ios/Runner/Info.plist文件中加入以下代码
<dict>
<key>io.flutter.embedded_views_preview</key>
<true/>
</dict>
解决方案来自 https://pub.flutter-io.cn/packages/webview_flutter
github仓库 https://github.com/flutter/plugins/tree/master/packages/webview_flutter
官方所有插件仓库(推荐) https://github.com/flutter/plugins
持续更新......
本文由 代码君 创作,如果您觉得本文不错,请随意赞赏
采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
原文链接:https://www.loseboy.cn/archives/flutter踩坑记录
最后更新:2020-03-30 14:35:43
Update your browser to view this website correctly. Update my browser now