diff --git a/lib/main.dart b/lib/main.dart index bab2c19..1a81c77 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; import 'package:fmassive/database.dart'; -import 'package:fmassive/edit_set.dart'; import 'package:fmassive/home_page.dart'; MyDatabase db = MyDatabase(); @@ -16,20 +15,12 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - const edit = EditGymSetPage(gymSet: GymSetsCompanion()); - - final Map routes = { - '/home': (context) => const HomePage(), - '/edit-set': (context) => edit, - }; - return MaterialApp( - title: 'Gym App', + title: 'Massive', themeMode: ThemeMode.system, + home: const HomePage(), darkTheme: ThemeData.dark(), theme: ThemeData.light(), - initialRoute: '/home', - routes: routes, navigatorKey: navigatorKey, ); }