普段実機でデバッグ作業をしていると、エディタのiOSシュミレーター
で検証をお願いされた時、テキストフォーム入力時にあれ? シュミレーター上でキーボードが出ない。。。なんてことがあります。
しばらく使っていなかったせいか、iOSシュミレーター
のデフォルトではMac本体
のキーボードが指定されているので
command + shift + K
を同時押しすることで切り替えて出現させることを忘れていました。
表示されたキーボードはTextInputType
を利用しアルファベットや数値入力が指定できます。
new TextField(
keyboardType: TextInputType.name,
)
new TextField(
keyboardType: TextInputType.datetime,
)
new TextField(
keyboardType: TextInputType.emailAddress,
)
new TextField(
keyboardType: TextInputType.text,
)
new TextField(
keyboardType: TextInputType.phone,
)
new TextField(
keyboardType: TextInputType.none,
)