Commit fd2a7435 by tanghuan

还原测试的修改

1 parent e7cbb1fd
...@@ -43,7 +43,12 @@ class WebPage extends StatelessWidget { ...@@ -43,7 +43,12 @@ class WebPage extends StatelessWidget {
), ),
child: BlocConsumer<WebCubit, WebState>( child: BlocConsumer<WebCubit, WebState>(
builder: (ctx, state) { builder: (ctx, state) {
return Scaffold( return PopScope(
canPop: false,
onPopInvokedWithResult: (didPop, result) {
ctx.read<WebCubit>().handleBack();
},
child: Scaffold(
appBar: _buildAppBar(ctx, state), appBar: _buildAppBar(ctx, state),
endDrawer: _buildDrawer(ctx, state), endDrawer: _buildDrawer(ctx, state),
body: Stack( body: Stack(
...@@ -111,6 +116,7 @@ class WebPage extends StatelessWidget { ...@@ -111,6 +116,7 @@ class WebPage extends StatelessWidget {
], ],
) )
: null, : null,
),
); );
}, },
listener: (context, state) { 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!