mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 08:44:06 +02:00
register page
This commit is contained in:
parent
80a464a6b6
commit
559df9494a
@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'log_in_page.dart';
|
import 'log_in_page.dart';
|
||||||
|
import 'register_page.dart';
|
||||||
import 'global_components.dart';
|
import 'global_components.dart';
|
||||||
|
|
||||||
class LandingPage extends StatelessWidget {
|
class LandingPage extends StatelessWidget {
|
||||||
@ -18,7 +19,12 @@ class LandingPage extends StatelessWidget {
|
|||||||
builder: (context) => const LogInPage()))
|
builder: (context) => const LogInPage()))
|
||||||
},
|
},
|
||||||
child: const Text("Log ind")),
|
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),
|
style: TextStyle(fontSize: 64),
|
||||||
),
|
),
|
||||||
const PrimaryInput(
|
const PrimaryInput(
|
||||||
label: "Mail/Tlf",
|
label: "Mail/Tlf", placeholderText: "f.eks. example@example.com"),
|
||||||
placeholderText: "f.eks. example@example.com eller 12345678"),
|
|
||||||
const PrimaryInput(label: "Password", placeholderText: "*********"),
|
const PrimaryInput(label: "Password", placeholderText: "*********"),
|
||||||
PrimaryButton(
|
PrimaryButton(
|
||||||
onPressed: () => {
|
onPressed: () => {
|
||||||
|
@ -18,8 +18,7 @@ class RegisterPage extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const PrimaryInput(label: "Fornavn", placeholderText: "Fornavn"),
|
const PrimaryInput(label: "Fornavn", placeholderText: "Fornavn"),
|
||||||
const PrimaryInput(
|
const PrimaryInput(
|
||||||
label: "Mail/Tlf",
|
label: "Mail/Tlf", placeholderText: "f.eks. example@example.com"),
|
||||||
placeholderText: "f.eks. example@example.com eller 12345678"),
|
|
||||||
const PrimaryInput(label: "Password", placeholderText: "*********"),
|
const PrimaryInput(label: "Password", placeholderText: "*********"),
|
||||||
const PrimaryInput(
|
const PrimaryInput(
|
||||||
label: "Password (igen)", placeholderText: "*********"),
|
label: "Password (igen)", placeholderText: "*********"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user