2023-05-06 21:14:12 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-05-16 20:07:18 +00:00
|
|
|
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
|
2023-06-05 22:21:29 +00:00
|
|
|
import 'package:tetra_stats/views/main_view.dart';
|
|
|
|
import 'package:tetra_stats/views/compare_view.dart';
|
|
|
|
import 'package:tetra_stats/views/settings_view.dart';
|
2023-06-09 21:04:51 +00:00
|
|
|
import 'package:tetra_stats/views/tracked_players_view.dart';
|
2023-06-07 21:12:21 +00:00
|
|
|
import 'package:tetra_stats/views/calc_view.dart';
|
2023-05-06 21:14:12 +00:00
|
|
|
|
2023-05-16 20:07:18 +00:00
|
|
|
void main() {
|
|
|
|
sqfliteFfiInit();
|
|
|
|
databaseFactory = databaseFactoryFfi;
|
2023-05-25 19:21:56 +00:00
|
|
|
runApp(MaterialApp(
|
2023-06-06 21:04:49 +00:00
|
|
|
home: const MainView(),
|
2023-06-07 21:12:21 +00:00
|
|
|
routes: {
|
|
|
|
"/settings": (context) => const SettingsView(),
|
|
|
|
"/compare": (context) => const CompareView(),
|
|
|
|
"/states": (context) => const StatesView(),
|
|
|
|
"/calc": (context) => const CalcView()
|
|
|
|
},
|
2023-06-06 21:04:49 +00:00
|
|
|
theme: ThemeData(
|
|
|
|
fontFamily: 'Eurostile Round',
|
|
|
|
colorScheme: const ColorScheme.dark(primary: Colors.cyanAccent, secondary: Colors.purpleAccent),
|
|
|
|
scaffoldBackgroundColor: Colors.black)));
|
2023-05-16 20:07:18 +00:00
|
|
|
}
|