From 3909f86dd1e9e5bcb6b98ff927e5c77710b3efc5 Mon Sep 17 00:00:00 2001 From: liuyu65 Date: Thu, 8 Oct 2026 12:01:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=80=82=E9=85=8D=20Flutter=203.47=20?= =?UTF-8?q?=E7=9A=84=20IconButton=20API=EF=BC=9B=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E5=8D=87=E7=BA=A7=20V1.0.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _iconBtn 的 tapTargetSize 改由 IconButton.styleFrom 提供(新 SDK 已移除该形参) - 版本号 1.0.2+4 → 1.0.4+5(pubspec / 关于页 / README / BUILD-NOTES) - 安卓发布产物命名去 tablet:sequence_diagram_android_v1.0.4_release.apk --- BUILD-NOTES.md | 2 +- README.md | 6 +++--- lib/ui/app_shell.dart | 3 ++- lib/ui/dialogs.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/BUILD-NOTES.md b/BUILD-NOTES.md index 00b77d8..d36b75b 100644 --- a/BUILD-NOTES.md +++ b/BUILD-NOTES.md @@ -127,7 +127,7 @@ flutter pub get flutter build apk --release # 产物:build\app\outputs\flutter-apk\app-release.apk ``` -- 发布包归档:`release\sequence_diagram_tablet_v1.0.2_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 +- 发布包归档:`release\sequence_diagram_android_v1.0.4_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 - 上架应用商店时建议在 `android\app\build.gradle.kts` 配置正式签名后再构建 AAB: `flutter build appbundle --release`。 - 应用名「时序图设计器」、包名 `cc.sincos.sequence_diagram`、launcher 图标由 diff --git a/README.md b/README.md index ddf6882..8760f47 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - **深色 / 浅色双主题**:右上角 ☀ / ☾ 一键切换,语义颜色不变,导出 SVG 与屏幕一致 - **导出 SVG**:矢量、分层、带语义 `id` / `data-*` 元数据,可直接进工艺卡与 MES -## 正式版 V1.0.2 +## 正式版 V1.0.4 **可运行的 Flutter Windows 桌面正式版**(源码在 `lib/`),设计人:呆头鹅。 @@ -97,7 +97,7 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 - **正式签名**:release 用独立 keystore 签名(`android/key/release.jks`,见 `BUILD-NOTES.md`),更新安装无需卸载重装; - **构建**:JDK 17 + Android SDK 36(详见 `BUILD-NOTES.md`),Gradle 与 Maven 已配置国内镜像: ```bash - flutter build apk --release # 产物 → release/sequence_diagram_tablet_v1.0.2_release.apk + flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.4_release.apk ``` - **自测**:`test/tablet_layout_test.dart` 覆盖 1280×800、2560×1600、960×600、800×480、竖屏 800×1280、600×960 等 7 种分辨率的无溢出回归; - **demo 图**:`demo/tablet-*.png`(由 `test/tablet_screenshots_test.dart` 生成)。 @@ -113,6 +113,6 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 - **软件**:时序图设计器 · Sequence Diagram Studio - **设计人**:呆头鹅 -- **版本**:V1.0.2 +- **版本**:V1.0.4 - **版权**:Copyright © 2026 呆头鹅。保留所有权利。 - **架构文档**:[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) · **使用帮助**:[`docs/HELP.md`](docs/HELP.md) diff --git a/lib/ui/app_shell.dart b/lib/ui/app_shell.dart index e96747c..596891f 100644 --- a/lib/ui/app_shell.dart +++ b/lib/ui/app_shell.dart @@ -809,7 +809,8 @@ class _AppShellState extends State { splashRadius: 16 * s, padding: EdgeInsets.zero, constraints: BoxConstraints(minWidth: 34 * s, minHeight: 34 * s), - tapTargetSize: s < 1 ? MaterialTapTargetSize.shrinkWrap : null, + // 新版 Flutter 的 IconButton 已移除 tapTargetSize 形参,改由 style 提供。 + style: IconButton.styleFrom(tapTargetSize: s < 1 ? MaterialTapTargetSize.shrinkWrap : null), ); } diff --git a/lib/ui/dialogs.dart b/lib/ui/dialogs.dart index 599f715..0701d6e 100644 --- a/lib/ui/dialogs.dart +++ b/lib/ui/dialogs.dart @@ -2124,7 +2124,7 @@ class HelpDialog extends StatelessWidget { Text('时序图设计器 · Sequence Diagram Studio', style: TextStyle(color: t.text, fontSize: 15, fontWeight: FontWeight.w700)), const SizedBox(height: 4), - Text('V1.0.2(${android ? '安卓版' : 'Windows 版'})', + Text('V1.0.4(${android ? '安卓版' : 'Windows 版'})', style: TextStyle(color: t.dim, fontSize: 12)), ], ), diff --git a/pubspec.yaml b/pubspec.yaml index aecffbb..416997e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.2+4 +version: 1.0.4+5 environment: sdk: ^3.13.3