Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
laki_icu_app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宏
laki_icu_app
Commits
d89810d0
Commit
d89810d0
authored
Jun 25, 2026
by
akari
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.ruanyiit.com/zhanghong/laki_icu_app
parents
59de0036
fbfad9ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
main.dart
lib/main.dart
+12
-3
No files found.
lib/main.dart
View file @
d89810d0
...
@@ -48,9 +48,15 @@ Future<void> main(List<String> args) async {
...
@@ -48,9 +48,15 @@ Future<void> main(List<String> args) async {
..
register
(
WidgetDetailInspector
())
..
register
(
WidgetDetailInspector
())
..
register
(
Console
());
..
register
(
Console
());
// ..register(DioInspector(dio: ApiClient.instance().dio));
// ..register(DioInspector(dio: ApiClient.instance().dio));
// 全局全屏:隐藏系统状态栏和底部导航栏
SystemChrome
.
setEnabledSystemUIMode
(
SystemUiMode
.
manual
,
overlays:
[]);
runApp
(
UMEWidget
(
enable:
true
,
child:
const
MyApp
()));
runApp
(
UMEWidget
(
enable:
true
,
child:
const
MyApp
()));
}
else
{
}
else
{
WidgetsFlutterBinding
.
ensureInitialized
();
WidgetsFlutterBinding
.
ensureInitialized
();
// 全局全屏:隐藏系统状态栏和底部导航栏
SystemChrome
.
setEnabledSystemUIMode
(
SystemUiMode
.
manual
,
overlays:
[]);
runApp
(
const
MyApp
());
runApp
(
const
MyApp
());
}
}
// runApp(const MyApp());
// runApp(const MyApp());
...
@@ -99,9 +105,6 @@ class _MyAppState extends State<MyApp> {
...
@@ -99,9 +105,6 @@ class _MyAppState extends State<MyApp> {
);
);
_appRouter
=
AppRouter
();
_appRouter
=
AppRouter
();
// 全局全屏:隐藏系统状态栏和底部导航栏
SystemChrome
.
setEnabledSystemUIMode
(
SystemUiMode
.
manual
,
overlays:
[]);
// 监听 Token 过期事件
// 监听 Token 过期事件
_tokenExpiredSubscription
=
_tokenExpiredSubscription
=
eventBus
.
on
<
TokenExpiredEvent
>().
listen
((
event
)
{
eventBus
.
on
<
TokenExpiredEvent
>().
listen
((
event
)
{
...
@@ -215,6 +218,12 @@ class _MyAppState extends State<MyApp> {
...
@@ -215,6 +218,12 @@ class _MyAppState extends State<MyApp> {
scaffoldMessengerKey:
_scaffoldMessengerKey
,
scaffoldMessengerKey:
_scaffoldMessengerKey
,
routerConfig:
_appRouter
.
config
(),
routerConfig:
_appRouter
.
config
(),
debugShowCheckedModeBanner:
false
,
debugShowCheckedModeBanner:
false
,
builder:
(
context
,
child
)
{
// 每次页面重建时重新隐藏状态栏,防止路由切换后状态栏重新出现
SystemChrome
.
setEnabledSystemUIMode
(
SystemUiMode
.
manual
,
overlays:
[]);
return
child
??
const
SizedBox
.
shrink
();
},
),
),
if
(
_isInitializing
)
_buildSplash
(),
if
(
_isInitializing
)
_buildSplash
(),
],
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment