feat: 新增我的报告模块,集成inappwebview支持H5详情页
1. 添加flutter_inappwebview依赖并配置各平台插件注册 2. 新增我的报告列表页、详情WebView页 3. 新增报告模块API和数据模型 4. 配置路由跳转,修复我的菜单跳转逻辑 5. 添加AGP9兼容补丁修复插件构建问题 6. 注释掉登录成功的SnackBar提示
This commit is contained in:
@@ -166,6 +166,14 @@ dependencies:
|
||||
# url_launcher:跳转应用商店 / 外部浏览器下载地址
|
||||
url_launcher: ^6.3.1
|
||||
|
||||
# WebView(内嵌 H5 报告详情页,支持 JS ↔ Flutter 双向通信)
|
||||
# 为什么用 flutter_inappwebview 而不是 webview_flutter:
|
||||
# - 需要 H5 内部按钮回调到 Flutter(JS bridge:addJavaScriptHandler)
|
||||
# - 比官方 webview_flutter 功能强:支持 callAsyncJavaScript、cookie 管理等
|
||||
# - 6.1.5 stable 最低 Flutter 3.24 / Dart 3.5,项目 Flutter 3.44.8 完全兼容
|
||||
# ⚠ Android 端要求 minSdkVersion >= 19(flutter_inappwebview 6.x 默认)
|
||||
flutter_inappwebview: ^6.1.5
|
||||
|
||||
# 常驻底部面板(smooth_sheets:3 停靠点拖拽面板,支持内部 ListView 滚动联动)
|
||||
# 用法:lib/core/components/persistent_snap_sheet.dart 封装组件
|
||||
# 版本:1.1.1(2026-07 发布,支持 persistent + modal 两种模式)
|
||||
|
||||
Reference in New Issue
Block a user