mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Match the ios number input type behavior to what is said in the docs (#7281)
This commit is contained in:
parent
358a24c499
commit
3f99878315
@ -19,7 +19,9 @@ static UIKeyboardType ToUIKeyboardType(NSDictionary* type) {
|
||||
if ([inputType isEqualToString:@"TextInputType.number"]) {
|
||||
if ([type[@"signed"] boolValue])
|
||||
return UIKeyboardTypeNumbersAndPunctuation;
|
||||
return UIKeyboardTypeDecimalPad;
|
||||
if ([type[@"decimal"] boolValue])
|
||||
return UIKeyboardTypeDecimalPad;
|
||||
return UIKeyboardTypeNumberPad;
|
||||
}
|
||||
if ([inputType isEqualToString:@"TextInputType.phone"])
|
||||
return UIKeyboardTypePhonePad;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user