mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-28 00:34:06 +02:00
37 lines
1.2 KiB
Dart
37 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'global_components.dart';
|
|
import 'log_in_page.dart';
|
|
|
|
class RegisterPage extends StatelessWidget {
|
|
const RegisterPage({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Row(mainAxisAlignment: MainAxisAlignment.center, children: [
|
|
Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Text(
|
|
"Opret bruger",
|
|
style: TextStyle(fontSize: 64),
|
|
),
|
|
const PrimaryInput(label: "Fornavn", placeholderText: "Fornavn"),
|
|
const PrimaryInput(
|
|
label: "Mail/Tlf",
|
|
placeholderText: "f.eks. example@example.com eller 12345678"),
|
|
const PrimaryInput(label: "Password", placeholderText: "*********"),
|
|
const PrimaryInput(
|
|
label: "Password (igen)", placeholderText: "*********"),
|
|
PrimaryButton(
|
|
onPressed: () => {
|
|
Navigator.of(context).push(MaterialPageRoute(
|
|
builder: (context) => const LogInPage()))
|
|
},
|
|
child: const Text("Opret bruger"))
|
|
],
|
|
)
|
|
]));
|
|
}
|
|
}
|