From 017b59c516380ac68c0a61545000ee810d1f27cf Mon Sep 17 00:00:00 2001 From: Timourka Date: Sun, 15 Sep 2024 21:37:26 +0400 Subject: [PATCH] shift+alt+f --- lib/main.dart | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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), - ), ); + ), + ); } }