mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
register page
This commit is contained in:
parent
80a464a6b6
commit
559df9494a
@ -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"))
|
||||
],
|
||||
)
|
||||
]);
|
||||
|
@ -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: () => {
|
||||
|
@ -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: "*********"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user