fixed practice route to be more generic
This commit is contained in:
parent
06f2ed6656
commit
b6e4ab0ae8
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ class RouteGenerator {
|
||||||
case "/practice/setup": {
|
case "/practice/setup": {
|
||||||
return MaterialPageRoute(builder: (context) => PracticeSetupPage());
|
return MaterialPageRoute(builder: (context) => PracticeSetupPage());
|
||||||
}
|
}
|
||||||
case "/practice/month/practice": {
|
case "/practice/practice": {
|
||||||
return MaterialPageRoute(builder: (context) => PracticePage(settings.arguments));
|
return MaterialPageRoute(builder: (context) => PracticePage(settings.arguments));
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
|
@ -77,7 +77,7 @@ class _PracticeSetupState extends State<PracticeSetupPage> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pushNamed(
|
Navigator.pushNamed(
|
||||||
context,
|
context,
|
||||||
'/practice/month/practice',
|
'/practice/practice',
|
||||||
arguments: PracticeSetup(_count, _showCorrect, PracticeType.month)
|
arguments: PracticeSetup(_count, _showCorrect, PracticeType.month)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue