fixed practice route to be more generic

This commit is contained in:
BroodjeAap 2020-11-03 20:26:56 +01:00
parent 06f2ed6656
commit b6e4ab0ae8
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ class RouteGenerator {
case "/practice/setup": {
return MaterialPageRoute(builder: (context) => PracticeSetupPage());
}
case "/practice/month/practice": {
case "/practice/practice": {
return MaterialPageRoute(builder: (context) => PracticePage(settings.arguments));
}
default: {

View file

@ -77,7 +77,7 @@ class _PracticeSetupState extends State<PracticeSetupPage> {
onPressed: () {
Navigator.pushNamed(
context,
'/practice/month/practice',
'/practice/practice',
arguments: PracticeSetup(_count, _showCorrect, PracticeType.month)
);
},