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