问题: 检测到新版本弹出升级对话框时,用户点击弹窗外部区域或按系统返回键 即可直接关闭弹窗,绕过升级提示,导致用户可能永远不会注意到更新。 修复: 对所有 3 个升级弹窗统一加两层防护: - barrierDismissible: false — 禁止点击弹窗外部区域关闭 - PopScope(canPop: false) — 禁止系统返回键关闭 涉及弹窗: 1. self_hosted_updater.dart - _showSelfHostedUpdateDialog(自建APK更新) 2. self_hosted_updater.dart - _showMarketUpdateDialog(应用市场引导更新) 3. update_service.dart - _checkGooglePlayUpdate(Google Play 更新) 用户必须通过弹窗内按钮操作: - 非强制更新:点击「稍后」/「暂时不更新」关闭,或点击「立即更新」开始更新 - 强制更新:只有「立即更新」按钮,无法跳过 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| android | ||
| assets | ||
| docs | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| scripts | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| CLAUDE.md | ||
| README.MD | ||
| analysis_options.yaml | ||
| flutter_android_update_guide.md | ||
| flutter_telemetry_solution.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| quickly.lottie | ||
| stickman.lottie | ||
README.MD
Create Flutter Framework
C:\Users\ph\Desktop\app>flutter create --org com.rwadurian rwa_android_app
Creating project rwa_android_app...
Resolving dependencies in `rwa_android_app`... (3.7s)
Downloading packages...
Got dependencies in `rwa_android_app`.
Wrote 130 files.
All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
In order to run your application, type:
$ cd rwa_android_app
$ flutter run
Your application code is in rwa_android_app\lib\main.dart.
rwa_android_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.