This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ static UIKeyboardType ToUIKeyboardType(NSDictionary* type) {
137137 if ([inputType isEqualToString: @" TextInputType.url" ]) {
138138 return UIKeyboardTypeURL;
139139 }
140+ if ([inputType isEqualToString: @" TextInputType.visiblePassword" ]) {
141+ return UIKeyboardTypeASCIICapable;
142+ }
140143 return UIKeyboardTypeDefault;
141144}
142145
Original file line number Diff line number Diff line change @@ -307,6 +307,20 @@ - (void)testKeyboardType {
307307 XCTAssertEqual (inputView.keyboardType , UIKeyboardTypeURL);
308308}
309309
310+ - (void )testVisiblePasswordUseAlphanumeric {
311+ NSDictionary * config = self.mutableTemplateCopy ;
312+ [config setValue: @{@" name" : @" TextInputType.visiblePassword" } forKey: @" inputType" ];
313+ [self setClientId: 123 configuration: config];
314+
315+ // Find all the FlutterTextInputViews we created.
316+ NSArray <FlutterTextInputView*>* inputFields = self.installedInputViews ;
317+
318+ FlutterTextInputView* inputView = inputFields[0 ];
319+
320+ // Verify keyboardType is set to the value specified in config.
321+ XCTAssertEqual (inputView.keyboardType , UIKeyboardTypeASCIICapable);
322+ }
323+
310324- (void )testSettingKeyboardTypeNoneDisablesSystemKeyboard {
311325 NSDictionary * config = self.mutableTemplateCopy ;
312326 [config setValue: @{@" name" : @" TextInputType.none" } forKey: @" inputType" ];
You can’t perform that action at this time.
0 commit comments