register page

This commit is contained in:
Mikkel Troels Kongsted 2025-01-23 10:18:11 +01:00
parent 80a464a6b6
commit 559df9494a
3 changed files with 9 additions and 5 deletions

View File

@ -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"))
],
)
]);

View File

@ -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: () => {

View File

@ -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: "*********"),