This commit is contained in:
2024-01-04 22:01:05 +02:00
parent a8b8c2af7a
commit 100645fa20
3 changed files with 9 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class _FetchAPIState extends State<FetchAPI> {
onTap: () {
Navigator.pushNamedAndRemoveUntil(
context,
'/',
'/home',
(route) => false);
},
child: Container(

View File

@@ -216,7 +216,7 @@ showSubmissionSuccess(BuildContext context, int chosenLine, String chosenColour,
onPressed: () {
Navigator.pushNamedAndRemoveUntil(
context,
'/',
'/home',
(route) => false);
},
);

View File

@@ -48,8 +48,14 @@ class MyAppState extends State<MyApp> {
// Possible Routes
routes: {
// Login (Eventually)
//'/login': (context) => const LogIn(),
// Signup (Also eventually xd)
//'/login/signup': (context) => const SignUp(),
// Homescreen
'/': (context) => const HomeScreen(),
'/home': (context) => const HomeScreen(),
// Fetching API Data
'/fetch': (context) => const FetchAPI(),