28 lines
776 B
Dart
28 lines
776 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)),
|
|
),
|
|
themeMode: ThemeMode.light, // Можно изменить на ThemeMode.light или ThemeMode.dark
|
|
home: const MyHomePage(title: '7 Kingdoms'),
|
|
);
|
|
}
|
|
}
|