From 559df9494a782e68091e7a2874f4d6dad46689dc Mon Sep 17 00:00:00 2001 From: Mikkel Troels Kongsted Date: Thu, 23 Jan 2025 10:18:11 +0100 Subject: [PATCH] register page --- mobile/lib/landing_page.dart | 8 +++++++- mobile/lib/log_in_page.dart | 3 +-- mobile/lib/register_page.dart | 3 +-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/mobile/lib/landing_page.dart b/mobile/lib/landing_page.dart index c779929..b841d4f 100644 --- a/mobile/lib/landing_page.dart +++ b/mobile/lib/landing_page.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'log_in_page.dart'; +import 'register_page.dart'; import 'global_components.dart'; class LandingPage extends StatelessWidget { @@ -18,7 +19,12 @@ class LandingPage extends StatelessWidget { builder: (context) => const LogInPage())) }, child: const Text("Log ind")), - PrimaryButton(onPressed: () => {}, child: const Text("Opret bruger")) + PrimaryButton( + onPressed: () => { + Navigator.of(context).push(MaterialPageRoute( + builder: (context) => const RegisterPage())) + }, + child: const Text("Opret bruger")) ], ) ]); diff --git a/mobile/lib/log_in_page.dart b/mobile/lib/log_in_page.dart index 167b13d..354e8bd 100644 --- a/mobile/lib/log_in_page.dart +++ b/mobile/lib/log_in_page.dart @@ -17,8 +17,7 @@ class LogInPage extends StatelessWidget { style: TextStyle(fontSize: 64), ), const PrimaryInput( - label: "Mail/Tlf", - placeholderText: "f.eks. example@example.com eller 12345678"), + label: "Mail/Tlf", placeholderText: "f.eks. example@example.com"), const PrimaryInput(label: "Password", placeholderText: "*********"), PrimaryButton( onPressed: () => { diff --git a/mobile/lib/register_page.dart b/mobile/lib/register_page.dart index 63b1c68..6aaaef8 100644 --- a/mobile/lib/register_page.dart +++ b/mobile/lib/register_page.dart @@ -18,8 +18,7 @@ class RegisterPage extends StatelessWidget { ), const PrimaryInput(label: "Fornavn", placeholderText: "Fornavn"), const PrimaryInput( - label: "Mail/Tlf", - placeholderText: "f.eks. example@example.com eller 12345678"), + label: "Mail/Tlf", placeholderText: "f.eks. example@example.com"), const PrimaryInput(label: "Password", placeholderText: "*********"), const PrimaryInput( label: "Password (igen)", placeholderText: "*********"),