Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textfield does not show Keyboard on iOS Simulator

Tags:

ios

flutter

dart

I'm trying to build a simple login screen here using basic Textfields, but I can't get a keyboard to appear in the Simulator.
Input via the physical keyboard works just fine, but in the iOS Simulator there is no keyboard visible. Do I have to explicitly open it or something?

Feels like I'm missing something really basic here.

buildLoginScreen() { return new Container(   padding: EdgeInsets.only(left: 50.0, right: 50.0),   child: new Column(     children: <Widget>[       new TextField(         style: new TextStyle(color: Colors.white),         autofocus: true,         autocorrect: false,         decoration: new InputDecoration(           labelText: 'Login',         ),         onChanged: (text) { _userLoginEmail = text; },       ),       new TextField(         autofocus: false,         autocorrect: false,         obscureText: true,         decoration: new InputDecoration(           labelText: 'Password'         ),         onChanged: (text) { _userLoginPassword = text; },       )     ],   ), ); } 

Solution Turns out if the hardware keyboard is connected, it will suppress the software keyboard. cmd + shift + k disconnects the hardware keyboard or cmd + k toggles the software keyboard.

like image 488
TommyF Avatar asked Jun 29 '18 06:06

TommyF


People also ask

How do you open the keyboard in iOS simulator flutter?

CMD + Shift + K toggles connectivity of the hardware keyboard, which will open the software keyboard by default if the other one is disconnected.

How do you hide the keyboard on iPhone simulator?

Tap in a text field. Tap the "hide keyboard" button in bottom-right corner. Tap to another text field.

How do you show touches on iPhone simulator?

You can show touch indicators in the iOS simulator by opening Terminal and running defaults write com. apple. iphonesimulator ShowSingleTouches 1 . You can turn this setting off again by running defaults write com.


1 Answers

  • CMD + Shift + K toggles connectivity of the hardware keyboard, which will open the software keyboard by default if the other one is disconnected.
  • CMD + K toggles the visibility of the software keybaord.
like image 124
creativecreatorormaybenot Avatar answered Oct 13 '22 20:10

creativecreatorormaybenot