From 9cdd4f292ff07736b2669de77978f16cd870a2a9 Mon Sep 17 00:00:00 2001 From: Kevin Worth Date: Mon, 27 Apr 2020 08:37:36 -0400 Subject: [PATCH] Add TextField for entering (real) name --- flutterfamilies/lib/main.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flutterfamilies/lib/main.dart b/flutterfamilies/lib/main.dart index 94f0152..ae96045 100644 --- a/flutterfamilies/lib/main.dart +++ b/flutterfamilies/lib/main.dart @@ -99,12 +99,14 @@ class _MyHomePageState extends State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', + 'Name:', style: Theme.of(context).textTheme.headline4, ), + TextField( + decoration: InputDecoration( + hintText: 'Enter your (real) name', + ), + ), ], ), ), -- 2.43.0