TF-1694 Use KeyboardUtils to centralized management show/hide keyboard
(cherry picked from commit e2598476ecdc8c5d16a17dc3c777a34620013c64)
This commit is contained in:
@@ -134,7 +134,7 @@ class MailboxCreatorController extends BaseController {
|
||||
}
|
||||
|
||||
void selectMailboxLocation(BuildContext context) async {
|
||||
FocusScope.of(context).unfocus();
|
||||
KeyboardUtils.hideKeyboard(context);
|
||||
|
||||
if (accountId != null) {
|
||||
final arguments = DestinationPickerArguments(
|
||||
@@ -180,7 +180,7 @@ class MailboxCreatorController extends BaseController {
|
||||
}
|
||||
|
||||
void createNewMailbox(BuildContext context) {
|
||||
FocusScope.of(context).unfocus();
|
||||
KeyboardUtils.hideKeyboard(context);
|
||||
|
||||
final nameMailbox = newNameMailbox.value;
|
||||
final nameValidated = getErrorInputNameString(context);
|
||||
@@ -203,7 +203,7 @@ class MailboxCreatorController extends BaseController {
|
||||
}
|
||||
|
||||
void closeMailboxCreator(BuildContext context) {
|
||||
FocusScope.of(context).unfocus();
|
||||
KeyboardUtils.hideKeyboard(context);
|
||||
|
||||
if (BuildUtils.isWeb) {
|
||||
onDismissMailboxCreator?.call();
|
||||
|
||||
Reference in New Issue
Block a user