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 f2e05aed
authored
2026-03-10 13:51:51 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
SafeArea设置
1 parent
264872f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
lib/ui/pages/web_page.dart
lib/ui/pages/web_page.dart
View file @
f2e05ae
...
...
@@ -57,10 +57,7 @@ class WebPage extends StatelessWidget {
body:
Stack
(
children:
[
state
.
loaded
?
SizedBox
(
height:
MediaQuery
.
of
(
ctx
).
size
.
height
-
60
,
// 减去100像素留空
child:
WebViewWidget
(
controller:
ctx
.
read
<
WebCubit
>().
controller
),
)
?
WebViewWidget
(
controller:
ctx
.
read
<
WebCubit
>().
controller
)
:
const
Center
(
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
...
...
@@ -123,7 +120,8 @@ class WebPage extends StatelessWidget {
// ios 不使用 PopScope
if
(
Platform
.
isIOS
)
{
return
scaffold
;
//return scaffold;
return
SafeArea
(
child:
scaffold
);
}
return
PopScope
(
...
...
@@ -134,7 +132,7 @@ class WebPage extends StatelessWidget {
}
ctx
.
read
<
WebCubit
>().
handleBack
();
},
child:
scaffold
,
child:
SafeArea
(
child:
scaffold
)
,
);
},
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