feat(courseware): Flutter WebView 还原等高线课件并去除授权验证

- 原课件 HTML/JS/CSS/图片/视频完整搬入 Flutter assets,相对路径可直接离线运行
- 新增 CoursewarePage:本地 HttpServer + Range 支持,避免 file:// 与 CSP 限制
- 导航新增「等高线课件」,后端未就绪也可打开
- 补齐 macOS WebView 插件、Podfile、entitlements 与 Xcode 工程配置
This commit is contained in:
远影科技 committed 2026-11-21 07:30:48 +08:00
1 parent 4ef291568a
commit 355ca89a68
30 files changed
+7708 -12

No files matched your search

+7 -4
View File
@@ -34,6 +34,9 @@ dependencies:
# 与 GC-UI 后端(本地 HTTP 服务)通信
http: ^1.2.2
# 桌面 WebView:承载离线等高线课件(Win/macOS/Linux)
flutter_inappwebview: 6.1.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
@@ -60,10 +63,10 @@ flutter:
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
assets:
# 离线等高线课件(去除授权验证后的纯净版),整体作为目录打包。
- courseware/
- courseware/assets/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images