shift+alt+f

This commit is contained in:
Timourka 2024-09-15 21:37:26 +04:00
parent 8525cd030e
commit 017b59c516

View File

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