flutter open keyboard code example
Example 1: keyboard open event flutter
MediaQuery.of(context).viewInsets.bottom
Example 2: how i can call keboard in flutter
class YourState extends StatelessWidget {
FocusNode inputNode = FocusNode();
void openKeyboard(){
FocusScope.of(context).requestFocus(inputNode)
}
@override
Widget build(BuildContext context) {
return Scaffold(
body:Column(
children:[
TextFormField(
focusNode: inputNode)
)
...
FlatButton(
onpress:openKeyboard
)
])
)
}