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: () { onTap: () {
Navigator.pushNamedAndRemoveUntil( Navigator.pushNamedAndRemoveUntil(
context, context,
'/', '/home',
(route) => false); (route) => false);
}, },
child: Container( child: Container(

View File

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

View File

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