feature: 更新readme
This commit is contained in:
parent
f1388d6d62
commit
8bdcc676f6
68
README.md
68
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
|
$ flutter build ipa --dart-define=APP_ENV=production
|
||||||
# android生产环境打包
|
# android生产环境打包
|
||||||
$ flutter build apk --dart-define=APP_ENV=production
|
$ flutter build apk --dart-define=APP_ENV=production
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user