Commit 9215abd9 by tanghuan

取消SafeArea的使用,恢复原来的显示

1 parent 35d54674
......@@ -57,7 +57,10 @@ class WebPage extends StatelessWidget {
body: Stack(
children: [
state.loaded
? WebViewWidget(controller: ctx.read<WebCubit>().controller)
? SizedBox(
height: MediaQuery.of(ctx).size.height - 60, // 减去100像素留空
child: WebViewWidget(controller: ctx.read<WebCubit>().controller),
)
: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
......@@ -120,8 +123,7 @@ class WebPage extends StatelessWidget {
// ios 不使用 PopScope
if (Platform.isIOS) {
//return scaffold;
return SafeArea(child: scaffold);
return scaffold;
}
return PopScope(
......@@ -132,7 +134,7 @@ class WebPage extends StatelessWidget {
}
ctx.read<WebCubit>().handleBack();
},
child: SafeArea(child: scaffold),
child: scaffold,
);
},
listener: (context, state) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!