@@ -14,7 +14,7 @@ class MyApp extends StatelessWidget {
1414 title: 'Flutter Demo' ,
1515 debugShowCheckedModeBanner: false ,
1616 theme: ThemeData (
17- fontFamily: " Lato" ,
17+ fontFamily: ' Lato' ,
1818 // This is the theme of your application.
1919 //
2020 // Try running your application with "flutter run". You'll see the
@@ -97,6 +97,9 @@ class _MyHomePageState extends State<MyHomePage> {
9797 // horizontal).
9898 mainAxisAlignment: MainAxisAlignment .center,
9999 children: < Widget > [
100+ TextField (controller: TextEditingController (text: 'My text field' )),
101+ Checkbox (value: true , onChanged: (value) {}),
102+ Switch (value: true , onChanged: (value){}),
100103 const Text (
101104 'You have pushed the button this many times:' ,
102105 ),
@@ -107,10 +110,10 @@ class _MyHomePageState extends State<MyHomePage> {
107110 ],
108111 ),
109112 ),
110- floatingActionButton: Semantics (
111- child : FloatingActionButton (
112- onPressed : _incrementCounter,
113- tooltip : 'Increment' ,
113+ floatingActionButton: FloatingActionButton (
114+ onPressed : _incrementCounter,
115+ child : Semantics (
116+ label : 'Increment' ,
114117 child: const Icon (Icons .add),
115118 ),
116119 ), // This trailing comma makes auto-formatting nicer for build methods.
0 commit comments