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 04f737bd
authored
2025-12-24 18:53:33 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ios手势测试
1 parent
62e5f10a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
lib/ui/pages/web_page.dart
lib/ui/pages/web_page.dart
View file @
04f737b
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/env_config.dart'
;
import
'package:appframe/config/env_config.dart'
;
import
'package:appframe/config/locator.dart'
;
import
'package:appframe/config/locator.dart'
;
import
'package:appframe/config/routes.dart'
;
import
'package:appframe/config/routes.dart'
;
import
'package:appframe/ui/widgets/ios_edge_swipe_detector.dart'
;
import
'package:appframe/ui/widgets/tip_overlay_widget.dart'
;
import
'package:appframe/ui/widgets/tip_overlay_widget.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
...
@@ -36,6 +39,20 @@ class WebPage extends StatelessWidget {
...
@@ -36,6 +39,20 @@ class WebPage extends StatelessWidget {
stuId
=
sharedPreferences
.
getString
(
'auth_stuId'
);
stuId
=
sharedPreferences
.
getString
(
'auth_stuId'
);
}
}
if
(
Platform
.
isIOS
)
{
// 初始化 iOS 边缘滑动监听
IosEdgeSwipeDetector
.
init
();
// 设置滑动回调
IosEdgeSwipeDetector
.
onEdgeSwipe
(()
{
debugPrint
(
""
);
debugPrint
(
"^^^^^^^^^^^^^^web_page^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
);
debugPrint
(
"web_page 检测到左边缘滑动,Flutter 收到通知"
);
debugPrint
(
"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
);
debugPrint
(
""
);
});
}
return
BlocProvider
(
return
BlocProvider
(
create:
(
context
)
=>
WebCubit
(
create:
(
context
)
=>
WebCubit
(
WebState
(
WebState
(
...
...
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