mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-06 08:06:47 +00:00
12 lines
307 B
Dart
12 lines
307 B
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
class KeyboardUtils {
|
|
static void hideKeyboard(BuildContext context) {
|
|
FocusScope.of(context).unfocus();
|
|
}
|
|
|
|
static void hideSystemKeyboardMobile() {
|
|
SystemChannels.textInput.invokeMethod('TextInput.hide');
|
|
}
|
|
} |