Created
August 6, 2020 02:13
-
-
Save truongsinh/62e1af77494f680c908b873f37f1eb69 to your computer and use it in GitHub Desktop.
step 4 nested AutofillGroup.diff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/main.dart b/lib/main.dart | |
index 526ac61..439d0fb 100644 | |
--- a/lib/main.dart | |
+++ b/lib/main.dart | |
@@ -31,11 +31,11 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { | |
// has been removed | |
@override | |
- Widget build(BuildContext context) => ListView( | |
+ Widget build(BuildContext context) => AutofillGroup( | |
+ child: ListView( | |
padding: EdgeInsets.symmetric(horizontal: 16), | |
children: [ | |
- AutofillGroup( | |
- child: Column( | |
+ Column( | |
children: [ | |
TextFormField( | |
autofillHints: [AutofillHints.streetAddressLine1], | |
@@ -53,7 +53,6 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { | |
), | |
], | |
), | |
- ), | |
CheckboxListTile( | |
contentPadding: EdgeInsets.zero, | |
title: const Text("Billing address same as shipping address"), | |
@@ -116,5 +115,6 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { | |
), | |
), | |
], | |
+ ), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment