Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e7cbb1fd
authored
2025-12-12 12:05:32 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
测试iOS返回的手势操作
1 parent
647c7088
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
16 deletions
lib/ui/pages/web_page.dart
lib/ui/pages/web_page.dart
View file @
e7cbb1f
import
'dart:io'
;
import
'package:appframe/bloc/web_cubit.dart'
;
import
'package:appframe/bloc/web_cubit.dart'
;
import
'package:appframe/config/constant.dart'
;
import
'package:appframe/config/constant.dart'
;
import
'package:appframe/config/evn_config.dart'
;
import
'package:appframe/config/evn_config.dart'
;
...
@@ -45,19 +43,7 @@ class WebPage extends StatelessWidget {
...
@@ -45,19 +43,7 @@ class WebPage extends StatelessWidget {
),
),
child:
BlocConsumer
<
WebCubit
,
WebState
>(
child:
BlocConsumer
<
WebCubit
,
WebState
>(
builder:
(
ctx
,
state
)
{
builder:
(
ctx
,
state
)
{
return
PopScope
(
return
Scaffold
(
canPop:
Platform
.
isIOS
,
onPopInvokedWithResult:
(
didPop
,
result
)
{
print
(
"onPopInvokedWithResult---------------------------
$didPop
$result
"
);
if
(
Platform
.
isIOS
)
{
if
(
didPop
)
{
ctx
.
read
<
WebCubit
>().
handleBack
();
}
}
else
{
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
(
...
@@ -125,7 +111,6 @@ class WebPage extends StatelessWidget {
...
@@ -125,7 +111,6 @@ class WebPage extends StatelessWidget {
],
],
)
)
:
null
,
:
null
,
),
);
);
},
},
listener:
(
context
,
state
)
{
listener:
(
context
,
state
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment