上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 145 下一页
摘要: 一,报错信息: E/flutter (20255): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(channel-error, Unable to establis 阅读全文
posted @ 2025-04-04 13:13 刘宏缔的架构森林 阅读(137) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://pub.dev/packages/image_gallery_saver_plus 编辑pubspec.yaml dependencies: flutter: sdk: flutter path_provider: ^2.1.5 audioplayers: 阅读全文
posted @ 2025-04-04 13:12 刘宏缔的架构森林 阅读(182) 评论(0) 推荐(0)
摘要: 一,报错信息 E/flutter (17543): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: DioException [unknown]: null E/flutter (17543): Erro 阅读全文
posted @ 2025-04-04 13:12 刘宏缔的架构森林 阅读(163) 评论(0) 推荐(0)
摘要: 一,SingleChildScrollView SingleChildScrollView是Flutter中的一个基础滚动组件,它可以让单个组件滚动。这个组件非常适合用于只有一个直接子组件的滚动场景,比如长文本、图片或者一个自定义组件。 很多情况下页面内容并没有那么多,但有可能超出屏幕范围,这时又不 阅读全文
posted @ 2025-04-04 13:11 刘宏缔的架构森林 阅读(94) 评论(0) 推荐(0)
摘要: 一,安装第三方库: 库地址: https://pub.dev/packages/shared_preferences 编辑pubspec.yaml dependencies: flutter: sdk: flutter shared_preferences: ^2.5.2 然后点 pub get 下 阅读全文
posted @ 2025-04-04 13:11 刘宏缔的架构森林 阅读(44) 评论(0) 推荐(0)
摘要: 一,安装第三方库 库地址: https://pub.dev/packages/fluttertoast 编辑pubspec.yaml dependencies: flutter: sdk: flutter path_provider: ^2.1.5 audioplayers: ^6.4.0 flut 阅读全文
posted @ 2025-03-29 09:05 刘宏缔的架构森林 阅读(234) 评论(0) 推荐(0)
摘要: 一,代码: 1,通用方法 import 'package:flutter/material.dart'; class DialogHelper { // 显示通用弹窗 static Future<void> showCustomDialog({ required BuildContext conte 阅读全文
posted @ 2025-03-29 09:04 刘宏缔的架构森林 阅读(85) 评论(0) 推荐(0)
摘要: 一,代码: dart代码:model class GoodsListItem { String name; String desc; int id; GoodsListItem(this.name,this.desc, this.id) {} GoodsListItem.fromJson(Map<S 阅读全文
posted @ 2025-03-29 09:04 刘宏缔的架构森林 阅读(27) 评论(0) 推荐(0)
摘要: 一,代码: import 'package:flutter/material.dart'; import 'dart:convert'; //定义解析后的类 class User { final String name; final int age; User({required this.name 阅读全文
posted @ 2025-03-29 09:04 刘宏缔的架构森林 阅读(10) 评论(0) 推荐(0)
摘要: 一,安装第三方库 地址: https://pub.dev/packages/http 编辑pubspec.yaml: dependencies: flutter: sdk: flutter path_provider: ^2.1.5 http: ^1.3.0 然后点击 pub get 二,代码: i 阅读全文
posted @ 2025-03-29 09:03 刘宏缔的架构森林 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 145 下一页