flutter
刘小哈哈哈
这个作者很懒,什么都没留下…
展开
-
安卓工程 支持http 请求
在AndroidManifest.xml文件中 application 配置中添加 android:networkSecurityConfig=“@xml/network_security_config”在main / res 目录下创建一个xml 文件夹, 然后在改文件夹中创建一个。network_security_config.xml 文件。注意,配置代码是在 中的, 在 “>” 尖括号里面的。如图,注意,是有一个xml文件夹的。原创 2023-03-11 14:04:10 · 658 阅读 · 0 评论 -
Cannot resolve symbol ‘Properties‘
打开file—> project structure ->modules -> android 工程 — modules SDK 选择一个sdk即可。在安卓模拟器上跑flutter 工程的时候,遇到了如下的报错。将其修改成 FileNotFoundException 即可。GradleException 这个方法找不到的报错。原创 2023-03-10 21:12:37 · 860 阅读 · 0 评论 -
✗ Unable to find bundled Java version.
【代码】✗ Unable to find bundled Java version.原创 2023-03-09 21:03:45 · 684 阅读 · 1 评论 -
The non-abstract class ‘FwfhTextStyle‘ is missing implementations for these
原因: flutter 中的库版本和工程已经不兼容了,需要更新flutter 引用的库。今天跑flutter 工程的时候,遇到了如下的报错。修复方法,将yaml.lock 文件删除,重新执行。原创 2023-03-02 20:58:56 · 697 阅读 · 0 评论 -
unzip: cannot find zipfile directory in one of
下面是执行flutter doctor 后报错内容。配置flutter 环境地质。原创 2023-02-20 21:23:06 · 3118 阅读 · 0 评论 -
flutter 中stack 控件的 大小是如何确定的
stack 是我们在flutter中常用到的控件,然而stack的大小是如何确定的是一个值得探究的问题,自己在网上也进行了搜索,但是总是不能解释自己遇到的新情况,所以我这里就根据目前的经验对stack大小是如何确定的进行一下总结。并结合代码进行演示。原创 2023-02-02 21:28:47 · 1236 阅读 · 1 评论 -
The code signature version is no longer supported.
完整内容。原创 2022-09-10 20:14:44 · 2820 阅读 · 0 评论 -
flutter 打开设置面板进行基本设置
如图。原创 2022-09-10 19:20:37 · 728 阅读 · 0 评论 -
Target of URI doesn‘t exist: ‘package:transparent_image/transparent_image.dart‘.
package。原创 2022-07-17 17:33:26 · 250 阅读 · 0 评论 -
Operand of null-aware operation ‘!‘ has type ‘SchedulerBinding‘ which excludes null.
是 animations 库的版本低了,需要更新将版本号增加到足够大即可,我这里增加到2.0.3就可以了原创 2022-07-05 23:24:57 · 1979 阅读 · 0 评论 -
Error: No named parameter with the name ‘foregroundColor‘
修复方法将框中的代码去掉就可以了原创 2022-07-05 23:15:25 · 801 阅读 · 0 评论 -
If you‘re running pod install manually, make sure flutter pub get is executed first.
执行 pod install报错[!] Invalid file: /Users/liubo/Downloads/gallery-main/ios/Flutter/Generated.xcconfig must exist. If you’re running pod install manually, make sure flutter pub get is executed first.根据提示,需要先添加 flutter 包所以 执行 flutter packages get然后又报错The原创 2022-07-05 21:48:36 · 1804 阅读 · 0 评论 -
flutter 报错 No MediaQuery widget ancestor found.
问题代码原因: flutter 界面的根组件必须是MaterialApp修复之后的代码原创 2022-07-02 19:53:06 · 1923 阅读 · 0 评论 -
flutter Unable to load asset: assets/images/888.png
Debug service listening on ws://127.0.0.1:65376/KSCFS_eCpng=/wsSyncing files to device iPhone 13…======== Exception caught by image resource service ================================================The following assertion was thrown resolving an image cod原创 2022-06-28 21:10:28 · 1144 阅读 · 0 评论 -
修复一次flutter 无法选中模拟器
执行这个命令1 sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer2 xcodebuild -runFirstLaunch原创 2022-06-27 21:38:31 · 404 阅读 · 0 评论