Commit 417df36b authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Add more detail to TextInputType documentation (#10474)

parent 2cd2a74e
...@@ -14,23 +14,41 @@ import 'text_editing.dart'; ...@@ -14,23 +14,41 @@ import 'text_editing.dart';
export 'dart:ui' show TextAffinity; export 'dart:ui' show TextAffinity;
/// The type of information for which to optimize the text input control. /// The type of information for which to optimize the text input control.
///
/// On Android, behavior may vary across device and keyboard provider.
enum TextInputType { enum TextInputType {
/// Optimize for textual information. /// Optimize for textual information.
///
/// Requests the default platform keyboard.
text, text,
/// Optimize for numerical information. /// Optimize for numerical information.
///
/// Requests a keyboard with ready access to the decimal point and number
/// keys.
number, number,
/// Optimize for telephone numbers. /// Optimize for telephone numbers.
///
/// Requests a keyboard with ready access to the number keys, "*", and "#".
phone, phone,
/// Optimize for date and time information. /// Optimize for date and time information.
///
/// On iOS, requests the default keyboard.
///
/// On Android, requests a keyboard with ready access to the number keys,
/// ":", and "-".
datetime, datetime,
/// Optimize for email addresses. /// Optimize for email addresses.
///
/// Requests a keyboard with ready access to the "@" and "." keys.
emailAddress, emailAddress,
/// Optimize for URLs. /// Optimize for URLs.
///
/// Requests a keyboard with ready access to the "/" and "." keys.
url, url,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment