forked from mgl_crew/Mitgliederladen
61 lines
2 KiB
Text
61 lines
2 KiB
Text
|
import 'package:flutter/material.dart';
|
||
|
import 'startscreen.dart';
|
||
|
|
||
|
void main() {
|
||
|
runApp(MyJGUApp());
|
||
|
}
|
||
|
|
||
|
class Ticket {
|
||
|
final vorname = 'Filiz';
|
||
|
final nachname = 'Kluba';
|
||
|
final birthday = '18.07.1997';
|
||
|
final matrikel = '2761428';
|
||
|
final picture = 'assets/Filiz.webp'; //Resolution 827x1063
|
||
|
}
|
||
|
|
||
|
class MyJGUApp extends StatelessWidget {
|
||
|
const MyJGUApp({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return MaterialApp(
|
||
|
title: 'JGU Ausweise',
|
||
|
theme: themedataLight,
|
||
|
darkTheme: themedataLight, //not implemented
|
||
|
themeMode: ThemeMode.system,
|
||
|
home: StartScreen(),
|
||
|
debugShowCheckedModeBanner: false,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
static ThemeData themedataLight = ThemeData(
|
||
|
brightness: Brightness.light,
|
||
|
textTheme: Typography.material2021().black,
|
||
|
colorScheme: const ColorScheme.light(
|
||
|
primary: Color(0xffbf0028),
|
||
|
onPrimary: Colors.white,
|
||
|
secondary: Color(0xff6e7073),
|
||
|
tertiary: Color(0xffd7d7d7),
|
||
|
background: Colors.white,
|
||
|
onBackground: Colors.black),
|
||
|
dividerColor: const Color(0xffd7d7d7),
|
||
|
cardTheme: const CardTheme(
|
||
|
surfaceTintColor: Colors.white,
|
||
|
shape: RoundedRectangleBorder(
|
||
|
borderRadius: BorderRadius.all(Radius.circular(2)),
|
||
|
side: BorderSide(width: 1, color: Color(0xff6e7073))),
|
||
|
),
|
||
|
iconTheme: const IconThemeData(color: Color(0xff6e7073)),
|
||
|
textButtonTheme: const TextButtonThemeData(
|
||
|
style: ButtonStyle(
|
||
|
shape: MaterialStatePropertyAll(RoundedRectangleBorder(
|
||
|
borderRadius: BorderRadius.all(Radius.circular(2)))),
|
||
|
backgroundColor: MaterialStatePropertyAll(Color(0xff082b6d)))),
|
||
|
appBarTheme: const AppBarTheme(
|
||
|
backgroundColor: Color(0xffbf0028),
|
||
|
iconTheme: IconThemeData(color: Colors.white),
|
||
|
actionsIconTheme: IconThemeData(color: Colors.white),
|
||
|
titleTextStyle: TextStyle(
|
||
|
color: Colors.white, fontWeight: FontWeight.w500, fontSize: 20)));
|
||
|
}
|