目录树重构
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "com.example.ohos",
|
||||
"bundleName": "cute.major.kitchen",
|
||||
"debug": true,
|
||||
"versionCode": 95,
|
||||
"versionName": "0.96.0",
|
||||
"versionCode": 100,
|
||||
"versionName": "0.99.1",
|
||||
"minAPIVersion": 50100018,
|
||||
"targetAPIVersion": 60002022,
|
||||
"apiReleaseType": "Release",
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "cute.major.kitchen",
|
||||
"debug": false,
|
||||
"versionCode": 95,
|
||||
"versionName": "0.96.0",
|
||||
"minAPIVersion": 50100018,
|
||||
"targetAPIVersion": 60002022,
|
||||
"apiReleaseType": "Release",
|
||||
"targetMinorAPIVersion": 0,
|
||||
"targetPatchAPIVersion": 0,
|
||||
"compileSdkVersion": "6.0.2.130",
|
||||
"compileSdkType": "HarmonyOS",
|
||||
"appEnvironments": [],
|
||||
"bundleType": "app",
|
||||
"buildMode": "release"
|
||||
},
|
||||
"module": {
|
||||
"name": "fluttertoast_ohos",
|
||||
"type": "har",
|
||||
"deviceTypes": [
|
||||
"default",
|
||||
"tablet"
|
||||
],
|
||||
"packageName": "fluttertoast_ohos",
|
||||
"installationFree": false
|
||||
}
|
||||
}
|
||||
@@ -154,6 +154,8 @@ flutter pub get && flutter analyze --no-pub
|
||||
| 4 | cached_network_image | 3.4.1 | 3.4.1-ohos.1 | 2026-04-12 | ✅ analyze 通过 |
|
||||
| 5 | flutter_markdown_plus | 1.0.7 | 1.0.7-ohos.1 | 2026-04-14 | ✅ analyze 通过 |
|
||||
| 6 | flutter_card_swiper | 7.2.0 | 7.2.0-ohos.1 | 2026-04-14 | ✅ analyze 通过 |
|
||||
| 7 | qr | 3.0.2 | 3.0.2-ohos.1 | 2026-04-19 | ✅ pub get 通过 |
|
||||
| 8 | mailer | 7.1.0 | 7.1.0-ohos.1 | 2026-04-19 | ✅ pub get 通过 |
|
||||
|
||||
### 5.2 各包克隆命令速查
|
||||
|
||||
@@ -178,6 +180,12 @@ git clone --depth 1 --branch v1.0.7 https://github.com/foresightmobile/flutter_m
|
||||
|
||||
# 6. flutter_card_swiper
|
||||
git clone --depth 1 --branch v7.2.0 https://github.com/ricardodalarme/flutter_card_swiper.git flutter_card_swiper
|
||||
|
||||
# 7. qr
|
||||
git clone --depth 1 --branch v3.0.2 https://github.com/kevmoo/qr.dart.git qr
|
||||
|
||||
# 8. mailer
|
||||
git clone --depth 1 --branch v7.1.0 https://github.com/dart-mailer/mailer.git mailer
|
||||
```
|
||||
|
||||
### 5.3 各包使用示例
|
||||
@@ -218,6 +226,22 @@ import 'package:flutter_card_swiper/flutter_card_swiper.dart';
|
||||
CardSwiper(itemCount: cards.length, itemBuilder: (ctx, index) => CardWidget(cards[index]), onSwipe: (prev, curr, direction) {})
|
||||
```
|
||||
|
||||
**qr**
|
||||
```dart
|
||||
import 'package:qr/qr.dart';
|
||||
final qrCode = QrCode(4, QrErrorCorrectLevel.L)..addData('Hello, world!');
|
||||
final qrImage = QrImage(qrCode);
|
||||
```
|
||||
|
||||
**mailer**
|
||||
```dart
|
||||
import 'package:mailer/mailer.dart';
|
||||
import 'package:mailer/smtp_server.dart';
|
||||
final smtpServer = gmail('user@gmail.com', 'password');
|
||||
final message = Message()..from = Address('user@gmail.com')..recipients.add('target@example.com')..subject = 'Test'..text = 'Hello';
|
||||
final sendReport = await send(message, smtpServer);
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 六、项目依赖兼容性总览
|
||||
@@ -230,6 +254,8 @@ CardSwiper(itemCount: cards.length, itemBuilder: (ctx, index) => CardWidget(card
|
||||
| cached_network_image | 本地 path | ✅ | ✅ | 条件导入,IO 分支 |
|
||||
| flutter_markdown_plus | 本地 path | ✅ | ✅ | 纯 Dart,全平台支持 |
|
||||
| flutter_card_swiper | 本地 path | ✅ | ✅ | 纯 Dart |
|
||||
| qr | 本地 path | ✅ | ✅ | 纯 Dart,QR码生成 |
|
||||
| mailer | 本地 path | ❌ | ✅ | 纯 Dart,SMTP客户端,Web不支持 |
|
||||
| hive_ce | pub.dev | ✅ | ✅ | 纯 Dart |
|
||||
| get / dio / logger / intl | pub.dev | ✅ | ✅ | 纯 Dart |
|
||||
| shared_preferences | pub.dev | ✅ | ✅ | localStorage |
|
||||
|
||||
Reference in New Issue
Block a user