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 82b45967
authored
2026-05-08 11:17:58 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
App唤醒时,调用 appOnShow 指令
1 parent
f3b50cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
lib/bloc/web_cubit.dart
lib/bloc/web_cubit.dart
View file @
82b4596
...
...
@@ -1154,6 +1154,12 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
}
}
if
(
lifecycleState
==
AppLifecycleState
.
resumed
)
{
// 从后台恢复时,调用 appOnShow 指令
var
resp
=
{
'unique'
:
''
,
'cmd'
:
'appOnShow'
,
'data'
:
''
,
'errMsg'
:
''
};
_sendResponse
(
resp
);
}
// switch (state) {
// case AppLifecycleState.resumed:
// // 应用从后台回到前台时触发
...
...
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