]> git.cworth.org Git - lmno.games/commitdiff
Add TextField for entering (real) name
authorKevin Worth <kworth082@gmail.com>
Mon, 27 Apr 2020 12:37:36 +0000 (08:37 -0400)
committerCarl Worth <cworth@cworth.org>
Sat, 23 May 2020 13:49:00 +0000 (06:49 -0700)
flutterfamilies/lib/main.dart

index 94f0152e335c5184f422a800760aa3e0c8c3b42d..ae9604574facc4526e7d077044068ab7fbca47b0 100644 (file)
@@ -99,12 +99,14 @@ class _MyHomePageState extends State<MyHomePage> {
           crossAxisAlignment: CrossAxisAlignment.start,
           children: <Widget>[
             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',
+              ),
+            ),
           ],
         ),
       ),