This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Handwerksapp/lib/main.dart
2026-04-01 23:17:29 +02:00

83 lines
1.8 KiB
Dart

import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Handwerksapp',
debugShowCheckedModeBanner: false,
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(
"Handwerksapp",
style: TextStyle(
color: Colors.white,
),
),
backgroundColor: Colors.deepPurple,
),
body: Center (
child: Column(
children: [
Text(
"Logen sie sich bitte ein",
style: TextStyle(
color: Colors.white,
),
),
SizedBox(height: 20),
TextField(
decoration: InputDecoration(
labelText: 'E-mail',
border: OutlineInputBorder(),
),
style: TextStyle(
color: Colors.white,
),
),
SizedBox(height: 20),
TextField(
obscureText: true,
decoration: InputDecoration(
labelText: 'Passwort',
border: OutlineInputBorder(),
),
style: TextStyle(
color: Colors.white,
),
),
SizedBox(height: 20),
ElevatedButton(
onPressed: (){
print("login gedrückt");
},
child: Text("Login"),
)
],
),
),
backgroundColor: const Color.fromARGB(255, 0, 0, 0),
);
}
}