Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 4a73d5a7
authored
2026-06-24 22:22:07 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
加载提示页处理
1 parent
81d7d881
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
lib/ui/pages/web_page.dart
lib/ui/pages/web_page.dart
View file @
4a73d5a
...
...
@@ -59,24 +59,11 @@ class WebPage extends StatelessWidget {
appBar:
state
.
showAppBar
?
_buildAppBar
(
ctx
,
state
)
:
null
,
body:
Stack
(
children:
[
state
.
loaded
state
.
isUpgrading
?
_buildLoadingView
(
ctx
,
message:
'资源更新中...'
)
:
(
state
.
loaded
?
WebViewWidget
(
controller:
ctx
.
read
<
WebCubit
>().
controller
)
:
_buildLoadingView
(
ctx
),
// 添加升级遮罩层
if
(
state
.
isUpgrading
)
Container
(
color:
Colors
.
black54
,
child:
const
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
CircularProgressIndicator
(
color:
Color
(
0xFF7691fa
)),
SizedBox
(
height:
16
),
Text
(
'资源更新中...'
,
style:
TextStyle
(
color:
Colors
.
white
)),
],
),
),
),
:
_buildLoadingView
(
ctx
)),
// 连续点击退出登录的隐形热区(左上角 60x60)
// 用于 H5 因 JS 异常无响应时的兜底退出机制
// 使用 Listener 而非 GestureDetector:避免 Android 端 WebView 平台视图
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment