Fixed the route to practice setup page

This commit is contained in:
BroodjeAap 2020-10-27 21:18:17 +01:00
parent 034d787731
commit 7864ede6ee
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ class AppDrawer extends StatelessWidget {
title: Text("Practice Months"),
onTap: () {
Navigator.pop(context);
Navigator.pushNamed(context, "/practice/month/setup");
Navigator.pushNamed(context, "/practice/setup");
}
),
],

View file

@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'file:///D:/dev/projects/ohthatsa/lib/pages/practice/PracticeSetupPage.dart';
import 'package:ohthatsa/pages/YearsPage.dart';
import 'package:ohthatsa/pages/practice/PracticeSetupPage.dart';
import 'package:ohthatsa/pages/practice/month/MonthPracticePage.dart';
import 'package:ohthatsa/pages/MonthValuesPage.dart';
@ -19,7 +19,7 @@ class OhThatsA extends StatelessWidget {
routes: {
'/monthValues': (context) => MonthValuesPage(),
'/years': (context) => YearsPage(),
'/practice/month/setup': (context) => PracticeSetupPage(),
'/practice/setup': (context) => PracticeSetupPage(),
'/practice/month/practice': (context) => MonthPracticePage(),
}
);