From 8bdcc676f6dff37cc3c072865584173b2974e704 Mon Sep 17 00:00:00 2001 From: mac-intel Date: Sat, 3 May 2025 15:35:48 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9cfa1a..f3a8c76 100644 --- a/README.md +++ b/README.md @@ -45,4 +45,70 @@ $ flutter run -d chrome --web-browser-flag "--disable-web-security" --dart-defin $ flutter build ipa --dart-define=APP_ENV=production # android生产环境打包 $ flutter build apk --dart-define=APP_ENV=production -``` \ No newline at end of file +``` + +## package + +1. http请求dio(https://pub.dev/packages/dio/install) + + - 安装: + + ```bash + $ flutter pub add dio + ``` + +2. 数据处理freezed(https://pub.dev/packages/freezed) + + - 安装: + + ```bash + $ flutter pub add freezed_annotation + $ flutter pub add dev:build_runner + $ flutter pub add dev:freezed + $ flutter pub add json_annotation + $ flutter pub add dev:json_serializable + ``` + +3. 日志处理使logging(https://pub.dev/packages/logging) + + - 安装: + + ```bash + $ flutter pub add logging + ``` + +4. 路由go_router(https://pub.dev/packages/go_router) + + - 安装 + + ```bash + $ flutter pub add go_router + ``` + +5. 状态管理riverpod(https://pub.dev/packages/riverpod) + + - 安装: + + ```bash + $ flutter pub add riverpod + $ flutter pub add flutter_riverpod + ``` + +6. 微信sdk fluwx(https://pub.dev/packages/fluwx) + + - 安装 + + ```bash + $ flutter pub add fluwx + ``` + +7. 轻toast fluttertoast(https://pub.dev/packages/fluttertoast) + + - 安装 + + ```bash + $ flutter pub add fluttertoast + ``` + + +