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.
CMD + Shift + K toggles connectivity of the hardware keyboard, which will open the software keyboard by default if the other one is disconnected.
Tap in a text field. Tap the "hide keyboard" button in bottom-right corner. Tap to another text field.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With