From b617724f0a2c2e48278941f35768d161c3d41c77 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 28 Nov 2023 20:08:29 +1300 Subject: [PATCH] Simplify main.dart --- lib/main.dart | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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, ); }