Commit 4a73d5a7 by tanghuan

加载提示页处理

1 parent 81d7d881
...@@ -59,24 +59,11 @@ class WebPage extends StatelessWidget { ...@@ -59,24 +59,11 @@ class WebPage extends StatelessWidget {
appBar: state.showAppBar ? _buildAppBar(ctx, state) : null, appBar: state.showAppBar ? _buildAppBar(ctx, state) : null,
body: Stack( body: Stack(
children: [ children: [
state.loaded state.isUpgrading
? WebViewWidget(controller: ctx.read<WebCubit>().controller) ? _buildLoadingView(ctx, message: '资源更新中...')
: _buildLoadingView(ctx), : (state.loaded
// 添加升级遮罩层 ? WebViewWidget(controller: ctx.read<WebCubit>().controller)
if (state.isUpgrading) : _buildLoadingView(ctx)),
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)),
],
),
),
),
// 连续点击退出登录的隐形热区(左上角 60x60) // 连续点击退出登录的隐形热区(左上角 60x60)
// 用于 H5 因 JS 异常无响应时的兜底退出机制 // 用于 H5 因 JS 异常无响应时的兜底退出机制
// 使用 Listener 而非 GestureDetector:避免 Android 端 WebView 平台视图 // 使用 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!