![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
flutter
may_he
这个作者很懒,什么都没留下…
展开
-
通过URL获取视频首帧作为封面
获取视频封面视频地址https://yun.job268.com/yun_video_0.6519106342375556.mp4视频地址后面拼接?vframe/jpg/offset/1 得到视频第一帧图的地址,作为封面.原创 2022-03-02 22:02:48 · 1763 阅读 · 1 评论 -
Flutter AppBar设置透明
child: Scaffold( extendBody: true, //底部NavigationBar透明 extendBodyBehindAppBar: true,//顶部Bar透明 appBar: AppBar( elevation: 0,//消除阴影 backgroundColor: Colors.white,//设置背景颜色为白色...),....),...原创 2022-02-22 11:59:18 · 2574 阅读 · 0 评论 -
Flutter bottomNavigationBar背景透明
Scaffold( extendBody: true,//加这句背景就透明.....)效果图原创 2022-02-22 11:51:35 · 2195 阅读 · 1 评论 -
flutter upgrade 报错 LibreSSL SSL_connect
先上图网上查到了很多种解决办法:1、重启计算机解决异常问题的万能招数,但是并没用2、修改Git网络设置(1)删除HTTP/HTTPS代理打开Git配置文件,直接修改Git的网络设置$ vim ~/.gitconfig或者直接用命令行修改$ git config --global --unset http.proxy$ git config --global --unset https.proxy然而并不能解决问题(2)修改HTTP/HTTPS 加密库原创 2022-02-21 16:35:31 · 380 阅读 · 0 评论 -
Could not get unknown property ‘compileSdkVersion‘ for extension ‘flutter‘ of type FlutterExtensio
用Android studio开发Flutter项目,运行不起来,报错如上解决办法1、flutter clean2、flutter upgrade因为当前flutter的版本太低,先clean缓存,再升级原创 2022-02-21 15:56:53 · 3207 阅读 · 0 评论 -
flutter android可以运行通过,iOS各种报错,头文件找不到
可以试试以下方法:清理所有缓存:flutter cleancd ios/pod deintegratepod cache clean --all运行iOS:flutter build ios此时如果还报错,打开项目xcworkspace,将这些建议点开选择perform changes,然后关闭项目,继续在终端运行flutter build ios如果还有报错,重复上面的步骤,再运行就正常了...原创 2021-08-03 16:07:22 · 862 阅读 · 0 评论 -
Flutter AS运行错误,但是Xcode能运行正常
$ flutter channel stable$ flutter upgrade$ flutter doctor$ flutter runAS运行iOS APP,日志报奇奇怪怪的错,有可能是flutter版本问题,master分支有坑,切换到stable就正常了原创 2021-07-12 17:03:38 · 598 阅读 · 0 评论 -
Flutter iOS 运行错误error: ‘Flutter/Flutter.h‘ file not found
删除ios/Flutter/Flutter.podspec:rm ios/Flutter/Flutter.podspec 运行flutter clean 重新运行app原创 2021-07-27 23:51:41 · 641 阅读 · 0 评论 -
Command PhaseScriptExecution failed with a nonzero exit code while trying to add Flutter to iOS app
Flutter 项目无法运行到iOS模拟器上,Xcode output:Command PhaseScriptExecution failed with a nonzero exit code解决办法用Xcode打开Flutter项目,将Build Phases中的For install builds only打钩,再运行项目即可原创 2021-07-12 11:27:43 · 2421 阅读 · 0 评论 -
flutter showDialog/AlertDialog 报错:No MaterialLocalizations found
这是因为dialog的context错误了,在main.dart中的main函数中需要新建一个MaterialApp对象,该对象的context才是dialog正确的contextvoid main() { runApp(MaterialApp(home: MyApp()));}void main() { runApp(MaterialApp(home: MyApp()));}class MyApp extends StatefulWidget { .... @overr.原创 2021-07-09 15:36:07 · 967 阅读 · 1 评论