Match the ios number input type behavior to what is said in the docs (flutter/engine#7281)

This commit is contained in:
Justin McCandless
2019-01-11 10:24:00 -08:00
committed by GitHub
parent c937fa2a71
commit 67fb5e4ec6

View File

@@ -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;