-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
platform-iosiOS applications specificallyiOS applications specifically
Description
TextInputType.number puts up a phone number style keyboard with no DONE button. Changing to TextInputType.text has a DONE button. iOS 10.3.3. How can I get a numeric keyboard on iOS?
Steps to Reproduce
Create a text field as follows:
TextEditingController controller = new TextEditingController(text: "");
Widget content = new TextField(
autocorrect: false,
autofocus: true,
controller: controller,
keyboardType: TextInputType.number,
maxLines: 1,
onSubmitted: (String value) { Navigator.pop(_context, "ok"); },
);(The text field is in a dialog which is why the onSubmitted does a Navigator.pop)
When keyboard appears it has 0-9, '.' an delete but no Done button. There is no way to 'submit' the number entered into the text field. Our app will do a lot of numeric entry so a numeric keypad is essential. Thanks for any help on this!
Logs
No errors.
Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha)
• Flutter at /Users/bartwaggoner/flutter
• Framework revision 701d534ba9 (10 days ago), 2017-09-12 14:01:51 -0700
• Engine revision 31d03de019
• Tools Dart version 1.25.0-dev.11.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
• Android SDK at /Users/bartwaggoner/Library/Android/sdk
• Platform android-26, build-tools 26.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.0, Build version 9A235
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Community Edition (version 2017.2.4)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35
[✓] Connected devices
• Barton's iPhone • 4ee038ab9c5211958a5828379a5c6f5033c7b3d9 • ios • iOS 10.3.3
IhorKlimov, changfeifan, kishaningithub, stevenspiel, bluemix and 59 more
Metadata
Metadata
Assignees
Labels
platform-iosiOS applications specificallyiOS applications specifically