Commit aa0eb17a by tanghuan

为方便测试,移除连续点击退出登录的隐形热区

1 parent 2b070705
...@@ -87,22 +87,22 @@ class WebPage extends StatelessWidget { ...@@ -87,22 +87,22 @@ class WebPage extends StatelessWidget {
// 用于 H5 因 JS 异常无响应时的兜底退出机制 // 用于 H5 因 JS 异常无响应时的兜底退出机制
// 使用 Listener 而非 GestureDetector:避免 Android 端 WebView 平台视图 // 使用 Listener 而非 GestureDetector:避免 Android 端 WebView 平台视图
// 在手势竞技场中抢占 onTap,导致点击不生效。 // 在手势竞技场中抢占 onTap,导致点击不生效。
Positioned( // Positioned(
left: 0, // left: 0,
top: 0, // top: 0,
width: 80, // width: 80,
height: 80, // height: 80,
child: Listener( // child: Listener(
behavior: HitTestBehavior.opaque, // behavior: HitTestBehavior.opaque,
onPointerDown: (_) { // onPointerDown: (_) {
final triggered = ctx.read<WebCubit>().onQuickLogoutTap(); // final triggered = ctx.read<WebCubit>().onQuickLogoutTap();
if (triggered) { // if (triggered) {
_showQuickLogoutDialog(ctx); // _showQuickLogoutDialog(ctx);
} // }
}, // },
child: const SizedBox.expand(), // child: const SizedBox.expand(),
), // ),
), // ),
], ],
), ),
bottomNavigationBar: state.showBottomNavBar bottomNavigationBar: state.showBottomNavBar
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!