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
|
@override
|
||||||
bool build() {
|
bool build() {
|
||||||
final listener = AppLifecycleListener(
|
final listener = AppLifecycleListener(
|
||||||
|
onHide: () => FocusManager.instance.primaryFocus?.unfocus(),
|
||||||
onPause: () => state = true,
|
onPause: () => state = true,
|
||||||
onResume: () => state = false,
|
onResume: () => state = false,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue