合集-flutter

摘要:flutter开发中遇到需求需要Row嵌套TextField,运行后发现代码报错: child: Row( children: [ TextField( decoration: InputDecoration( hintText: "名称" ), ) ], ), 错误码太多了,这里就不贴出来了。 c 阅读全文
posted @ 2024-01-05 16:26 hczhhm 阅读(116) 评论(0) 推荐(0) 编辑
摘要:Flutter 项目运行到ios模拟器报错: Error (Xcode): SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefaul 阅读全文
posted @ 2024-01-12 14:42 hczhhm 阅读(446) 评论(0) 推荐(0) 编辑
摘要:在开发中我们需要去计算文本的高度,从来去设置控件的高度,在flutter中我们可以使用TextPainter来计算文本高度 //获取文字高度 text:文字内容 fontSize:字体大小 fontWeight:字重 height:行高 maxWidth:最大宽度,maxLines:最大行数 sta 阅读全文
posted @ 2024-01-17 17:07 hczhhm 阅读(825) 评论(5) 推荐(0) 编辑
摘要:在项目开发中需要添加webview,加载内置的html文件,代码写完后ios运行没有问题,运行安卓时报错,错误提示如下: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':a 阅读全文
posted @ 2024-02-20 10:33 hczhhm 阅读(804) 评论(0) 推荐(0) 编辑
摘要:flutter ASE加密 与ios端NSData使用ASE加密后互相兼容 用ios端加密后用flutter端解密 阅读全文
posted @ 2024-02-22 00:21 hczhhm 阅读(405) 评论(0) 推荐(0) 编辑
摘要:flutter插件开发 flutter原生插件开发 (Plugin packages) 阅读全文
posted @ 2024-07-04 11:21 hczhhm 阅读(727) 评论(0) 推荐(0) 编辑
摘要:flutter Warning: CocoaPods is installed but broken. Skipping pod install. You appear to have CocoaPods ins 确保你已经安装了 CocoaPods 并可以正常使用: 1.flutter clean 阅读全文
posted @ 2024-06-21 14:19 hczhhm 阅读(79) 评论(0) 推荐(0) 编辑
摘要:provider是flutter官方推荐的状态管理插件,是基于InheritedWidget实现的。 下面我们来讲一个provider的使用方法。 1.在pubspec.yaml文件中添加 provider: ^6.1.2 开发文档:https://pub-web.flutter-io.cn/pac 阅读全文
posted @ 2024-07-04 18:43 hczhhm 阅读(106) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示