unfocus keyboard on app hide
This commit is contained in:
parent
a2906746b9
commit
9b03ce4549
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ class AppPausedController extends Notifier<bool> {
|
|||
@override
|
||||
bool build() {
|
||||
final listener = AppLifecycleListener(
|
||||
onHide: () => FocusManager.instance.primaryFocus?.unfocus(),
|
||||
onPause: () => state = true,
|
||||
onResume: () => state = false,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue