-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#21303Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.22Found to occur in 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specifically
Description
In the following example the focus changes to the password field like expected but then quickly jumps back to the email field.
This happens on iOS 13.5 as well as on iOS 14 in the current master and beta versions. It seems to work on Android, macOS and web.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(),
body: AutofillGroup(
child: Form(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
TextFormField(
decoration: InputDecoration(labelText: "E-Mail"),
textInputAction: TextInputAction.next,
autofillHints: [AutofillHints.username],
keyboardType: TextInputType.emailAddress,
onFieldSubmitted: (_) => FocusScope.of(context).nextFocus(),
),
SizedBox(height: 8),
TextFormField(
decoration: InputDecoration(labelText: "Password"),
obscureText: true,
textInputAction: TextInputAction.done,
autofillHints: [AutofillHints.password],
),
SizedBox(height: 8),
RaisedButton(
child: Text("Submit"),
onPressed: () {},
),
],
),
),
),
),
),
);
}
}[✓] Flutter (Channel master, 1.22.0-10.0.pre.257, on Mac OS X 10.15.6 19G2021 x86_64, locale en-CH)
• Flutter version 1.22.0-10.0.pre.257 at /Users/ben/flutter
• Framework revision 7a4d8e190c (5 minutes ago), 2020-09-18 14:42:04 -0700
• Engine revision 2abe69c608
• Dart version 2.10.0 (build 2.10.0-136.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/ben/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0, Build version 12A7209
• CocoaPods version 1.9.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (4 available)
• iPhone 11 Pro Max (mobile) • 1691DB1F-88AF-4CE4-9472-842AE98D0373 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
• macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.6 19G2021 x86_64
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web) • chrome • web-javascript • Google Chrome 85.0.4183.102
• No issues found!
orestesgaolin, cbenhagen, danielwalczak, stx, Henrik-glt and 16 more
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.22Found to occur in 1.22Found to occur in 1.22frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-iosiOS applications specificallyiOS applications specifically