flutter版插件
Android-Sky
Android开发知识梳理,为自己开发更顺心!
展开
-
flutter下拉插件失敗Could not resolve all files for configuration ‘:classpath‘. Could not find flutter
我是拉去融云推送聊天插件失败 cn.rongcloud.sdk:im_libcore:5.1.8但是 我的其他项目 融云拉取成功了 ,所以使用以前版本就行 。rongcloud_im_plugin: ^5.1.8 但是^ 要去掉 rongcloud_im_plugin: 5.1.8这样才能网上不会拉最新版本 使用 当前文件已拉取的版本...原创 2022-04-09 18:01:41 · 2857 阅读 · 0 评论 -
Not Foundpackage:pub/src/http.dart 232:5 _ThrowingClient.send HTTP error 404: No
HTTP error 404: Not Foundpackage:pub/src/http.dart 232:5 _ThrowingClient.send===== asynchronous gap ===========================package:pub/src/http.dart 380:18 _ThrottleClient.send===== asynchronous gap ============...原创 2022-03-18 08:08:12 · 148 阅读 · 0 评论 -
flutter model自动生成json_annotation 问题
1 三个插件json_annotation: ^4.0.1json_serializable: ^6.1.5build_runner: ^2.1.82 建立文件model@JsonSerializable()class BaseGridViewModel extends Object { //绑定小行业文本 String smallIndText; //绑定小行业id String smallIndId; BaseGridViewModel({this.small原创 2022-03-15 11:39:50 · 4040 阅读 · 0 评论 -
flutter插件中使用图片需要注意
本人需要在插件fijkplayer 中使用图片 ,在配置好 后, 一定要加上package原创 2021-12-23 10:45:40 · 1427 阅读 · 0 评论 -
Flutter ValueNotifier 系统和自定义的 异步通信
Flutter ValueNotifier 系统和自定义的 异步通信1 前言在实际项目开发中,有一种业务需求就是 页面A 进入页面B ,在页面B中数据发生改变后需要更新页面A 中的内容,其实第一种方案可以考虑使用 then函数回调,如下代码清单1-1所示,在页面A中以动态路由的方式打开页面TestBPage,并实现 Navigator 的then 函数,then 函数会在 TestBPage 页面关闭时回调。///代码清单 1-1 void openPageFunction(Buil.原创 2021-04-09 10:06:34 · 235 阅读 · 0 评论 -
Android 添加 aar 失败问题
首先 libs位置 要放在src 同一目录下面然后 app build下面 添加 implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')原创 2021-01-17 11:12:13 · 958 阅读 · 0 评论 -
flutter 小米推送插件使用注意
最近接入推送后 可以接受 但是MiPushReceiver 里面的方法一直走不进去最后发现 权限存放xml位置不对<permission android:name="com.wjapi.micro.micro_flutter_mipush_example.permission.MIPUSH_RECEIVE" android:protectionLevel="signature" /><uses-permission android:name="com..原创 2020-05-29 10:55:58 · 613 阅读 · 0 评论 -
Flutter继承高德地图 首次定位数据不显示
刚开始申请定位权限是static Future<bool> requestPermission() async { final permissions = await PermissionHandler().requestPermissions([PermissionGroup.locationWhenInUse]); if (permissions[PermissionGroup.locationWhenInUse] == PermissionStatus.granted) {原创 2020-05-28 11:02:39 · 677 阅读 · 0 评论 -
flutter 创建第三方依赖 添加libs问题
打开成 Androidstudio 形式 选择 progect形式中 plugin 目录下的 第一个Android 目录下 创建lib 即可原创 2020-05-21 11:02:52 · 1031 阅读 · 0 评论 -
Mapping values are not allowed here. Did you miss a co
Error on line 19, column 16 of pubspec.yaml: Mapping values are not allowed here. Did you miss a co 原因1前面出现空格原因2 插件描数 description 中 有中文 标识原创 2020-05-06 17:43:35 · 559 阅读 · 0 评论 -
七牛云 上传图片问题
问题1 java.net.UnknownServiceException: CLEARTEXT communication to * not permitted by network在Android O 升 P (8.0升9.0)的时候,会报以下异常 java.net.UnknownServiceException: CLEARTEXT communication to ...原创 2020-03-21 17:57:22 · 1677 阅读 · 1 评论