2023-10-05 11:41:23 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2023-10-13 09:50:50 +00:00
|
|
|
import 'constants.dart';
|
2023-10-14 06:41:27 +00:00
|
|
|
|
|
|
|
import 'states/home_page.dart';
|
|
|
|
import 'states/plug_settings.dart';
|
2023-10-14 11:38:56 +00:00
|
|
|
import 'states/graphs.dart';
|
2023-10-05 12:54:11 +00:00
|
|
|
|
2023-10-05 11:41:23 +00:00
|
|
|
void main() {
|
|
|
|
runApp(const MyApp());
|
|
|
|
}
|
|
|
|
|
|
|
|
class MyApp extends StatelessWidget {
|
|
|
|
const MyApp({super.key});
|
|
|
|
|
|
|
|
// This widget is the root of your application.
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
2023-10-14 06:41:27 +00:00
|
|
|
title: 'Home Server',
|
|
|
|
theme: ThemeData(
|
|
|
|
colorScheme: ColorScheme.fromSeed(seedColor: Constants.MAIN_COLOR),
|
|
|
|
useMaterial3: true,
|
|
|
|
),
|
|
|
|
home: const MyHomePage(title: 'Home Server'),
|
|
|
|
routes: <String, WidgetBuilder>{
|
2023-10-14 09:33:49 +00:00
|
|
|
'/plug_settings': (BuildContext context) => PlugSettings(),
|
2023-10-14 11:38:56 +00:00
|
|
|
'/graphs': (BuildContext context) => Graphs(),
|
2023-10-10 12:06:26 +00:00
|
|
|
});
|
2023-10-05 11:41:23 +00:00
|
|
|
}
|
|
|
|
}
|