diff --git a/packages/flutter/lib/src/material/text_form_field.dart b/packages/flutter/lib/src/material/text_form_field.dart index f91a9cc011..9e5cda3b5b 100644 --- a/packages/flutter/lib/src/material/text_form_field.dart +++ b/packages/flutter/lib/src/material/text_form_field.dart @@ -82,9 +82,8 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType; /// child: Center( /// child: Shortcuts( /// shortcuts: { -/// // Pressing enter on the field will now move to the next field. -/// LogicalKeySet(LogicalKeyboardKey.enter): -/// NextFocusIntent(), +/// // Pressing space in the field will now move to the next field. +/// LogicalKeySet(LogicalKeyboardKey.space): const NextFocusIntent(), /// }, /// child: FocusTraversalGroup( /// child: Form( @@ -97,7 +96,7 @@ export 'package:flutter/services.dart' show SmartQuotesType, SmartDashesType; /// return Padding( /// padding: const EdgeInsets.all(8.0), /// child: ConstrainedBox( -/// constraints: BoxConstraints.tight(Size(200, 50)), +/// constraints: BoxConstraints.tight(const Size(200, 50)), /// child: TextFormField( /// onSaved: (String value) { /// print('Value for field $index saved as "$value"');