diff --git a/lib/main.dart b/lib/main.dart index 28dcef4..19c7261 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -7,12 +7,12 @@ void main() { class MyApp extends StatelessWidget { const MyApp({super.key}); - @override + @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( - primarySwatch: Colors.blue, + primarySwatch: Colors.blue, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); @@ -22,8 +22,6 @@ class MyApp extends StatelessWidget { class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); - - final String title; @override @@ -35,19 +33,19 @@ class _MyHomePageState extends State { void _incrementCounter() { setState(() { - _counter++; + _counter++; }); } @override Widget build(BuildContext context) { - return Scaffold( + return Scaffold( appBar: AppBar( - title: Text("Кувшинов Тимур Александрович"), + title: Text("Кувшинов Тимур Александрович"), ), body: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( 'You have pushed the button this many times:', @@ -63,6 +61,7 @@ class _MyHomePageState extends State { onPressed: _incrementCounter, tooltip: 'Increment', child: const Icon(Icons.add), - ), ); + ), + ); } }