PMU-PIbd-32-Fedorenko-G-Y/flutter_app/lib/main.dart

29 lines
804 B
Dart

import 'package:flutter/material.dart';
import 'presentation/home_page/home_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: '7 Kingdoms',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: const Color.fromARGB(255, 20, 40, 150)),
useMaterial3: true,
),
darkTheme: ThemeData.dark().copyWith(
colorScheme: ColorScheme.fromSeed(seedColor: const Color.fromARGB(255, 20, 40, 150)),
useMaterial3: true,
),
themeMode: ThemeMode.light, // Можно изменить на ThemeMode.light или ThemeMode.dark
home: const MyHomePage(title: '7 Kingdoms'),
);
}
}