61 lines
1.2 KiB
Dart
Raw Normal View History

2024-09-09 23:40:09 +04:00
import 'dart:math';
2024-09-08 12:03:19 +04:00
import 'package:flutter/material.dart';
2024-09-09 23:40:09 +04:00
import 'year.dart';
2024-09-08 12:03:19 +04:00
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
2024-09-09 23:40:09 +04:00
@override
2024-09-08 12:03:19 +04:00
Widget build(BuildContext context) {
return MaterialApp(
2024-09-09 23:40:09 +04:00
title: 'Petrushin demo',
2024-09-08 12:03:19 +04:00
theme: ThemeData(
2024-09-09 23:40:09 +04:00
colorScheme: ColorScheme.fromSeed(seedColor: Colors.red),
2024-09-08 12:03:19 +04:00
useMaterial3: true,
),
2024-09-09 23:40:09 +04:00
home: const MyHomePage(title: 'Petrushin Egor Alexandrovich'),
2024-09-08 12:03:19 +04:00
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
2024-09-09 23:40:09 +04:00
@override
void initState() {
super.initState();
2024-09-08 12:03:19 +04:00
}
@override
Widget build(BuildContext context) {
2024-09-09 23:40:09 +04:00
return Scaffold(
2024-09-08 12:03:19 +04:00
appBar: AppBar(
2024-09-09 23:40:09 +04:00
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
2024-09-08 12:03:19 +04:00
),
2024-09-23 17:02:51 +04:00
body: const MyWidget(),
2024-09-09 23:40:09 +04:00
);
2024-09-08 12:03:19 +04:00
}
}
2024-09-09 23:40:09 +04:00
2024-09-23 17:02:51 +04:00
class MyWidget extends StatelessWidget {
const MyWidget({super.key});
2024-09-09 23:40:09 +04:00
2024-09-23 17:02:51 +04:00
@override
Widget build(BuildContext context) {
return const Placeholder();
2024-09-09 23:40:09 +04:00
}
}