HomeServer/frontend/lib/main.dart

31 lines
825 B
Dart
Raw Normal View History

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-19 14:26:09 +00:00
import 'states/graphs.dart';
2023-10-14 06:41:27 +00:00
import 'states/home_page.dart';
import 'states/plug_settings.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-19 14:26:09 +00:00
'/plug_settings': (BuildContext context) => const PlugSettings(),
'/graphs': (BuildContext context) => const Graphs(),
2023-10-10 12:06:26 +00:00
});
2023-10-05 11:41:23 +00:00
}
}