Commit 4a73d5a7 by tanghuan

加载提示页处理

1 parent 81d7d881
......@@ -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 平台视图
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!