Answers for "how i can call keboard in flutter"

0

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
      )
    ])
  )
}
Posted by: Guest on November-09-2020

Code answers related to "how i can call keboard in flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language