Match the ios number input type behavior to what is said in the docs (flutter/engine#7281)
This commit is contained in:
committed by
GitHub
parent
c937fa2a71
commit
67fb5e4ec6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user