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 7374fbfe
authored
2025-12-24 19:14:10 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ios手势测试
1 parent
5171c860
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
lib/ui/pages/link_page.dart
lib/ui/pages/web_page.dart
lib/ui/pages/link_page.dart
View file @
7374fbf
...
...
@@ -16,7 +16,7 @@ class LinkPage extends StatelessWidget {
final
String
?
url
=
extraData
?[
'url'
];
final
String
?
title
=
extraData
?[
'title'
];
if
(
Platform
.
isIOS
)
{
if
(
Platform
.
isIOS
)
{
// 初始化 iOS 边缘滑动监听
IosEdgeSwipeDetector
.
init
();
...
...
@@ -51,17 +51,18 @@ class LinkPage extends StatelessWidget {
:
const
Center
(
child:
CircularProgressIndicator
(
color:
Color
(
0xFF7691fa
))),
);
// 为所有平台添加PopScope支持
// return PopScope(
// canPop: false,
// onPopInvokedWithResult: (didPop, result) async {
// // if (didPop) return;
// await ctx.read<LinkCubit>().handleBack(ctx);
// },
// child: scaffold,
// );
if
(
Platform
.
isIOS
)
{
return
scaffold
;
}
return
scaffold
;
return
PopScope
(
canPop:
false
,
onPopInvokedWithResult:
(
didPop
,
result
)
async
{
// if (didPop) return;
await
ctx
.
read
<
LinkCubit
>().
handleBack
(
ctx
);
},
child:
scaffold
,
);
},
listener:
(
context
,
state
)
{},
),
...
...
lib/ui/pages/web_page.dart
View file @
7374fbf
...
...
@@ -117,6 +117,10 @@ class WebPage extends StatelessWidget {
:
const
SizedBox
.
shrink
(),
);
if
(
Platform
.
isIOS
)
{
return
scaffold
;
}
return
PopScope
(
canPop:
false
,
onPopInvokedWithResult:
(
didPop
,
result
)
async
{
...
...
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