Skip to content

Commit

Permalink
Home on large Screen (temp)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi-02 committed Jan 16, 2024
1 parent d9d2212 commit 61b77ca
Showing 1 changed file with 52 additions and 49 deletions.
101 changes: 52 additions & 49 deletions frontend/lib/tabs/home_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,62 +57,65 @@ class _HomeTabState extends State<HomeTab> {
return Scaffold(
body: SafeArea(
child: SingleChildScrollView(
child: Column(
children: [
GridView.count(
crossAxisCount: 2,
crossAxisSpacing: 10,
shrinkWrap: true,
child: Center(
child: Container(
constraints: const BoxConstraints(maxWidth: 600),
child: Column(
children: [
MyCard(
title: 'Events',
cardColor: colors.surfaceVariant,
imageName: events),
MyCard(
title: 'Mensa',
cardColor: colors.surfaceVariant,
imageName: mensa),
MyCard(
title: 'LSF',
cardColor: colors.surfaceVariant,
imageName: calendar,
GridView.count(
crossAxisCount: 2,
crossAxisSpacing: 10,
shrinkWrap: true,
children: [
MyCard(
title: 'Events',
cardColor: colors.surfaceVariant,
imageName: events),
MyCard(
title: 'Mensa',
cardColor: colors.surfaceVariant,
imageName: mensa),
MyCard(
title: 'LSF',
cardColor: colors.surfaceVariant,
imageName: calendar,
),
MyCard(
title: 'Noten',
cardColor: colors.surfaceVariant,
imageName: analytics,
),
],
),
MyCard(
title: 'Noten',
cardColor: colors.surfaceVariant,
imageName: analytics,
),
],
),
Container(
decoration: BoxDecoration(
color: colors.outlineVariant,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20))),
width: screenWidth,
height: 200,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Row(
Container(
decoration: BoxDecoration(
color: colors.outlineVariant,
borderRadius: const BorderRadius.all(Radius.circular(20))),
width: screenWidth,
height: 200,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildColumn('Gegebene Feedbacks', '12'),
_buildColumn('Absolvierte Quizze', '55'),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildColumn('Gegebene Feedbacks', '12'),
_buildColumn('Absolvierte Quizze', '55'),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildColumn('Ø Quiz-Position', '4'),
_buildColumn('Alle Feedbacks ', '1923'),
],
),
],
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
_buildColumn('Ø Quiz-Position', '4'),
_buildColumn('Alle Feedbacks ', '1923'),
],
),
],
),
),
],
),
],
),
),
),
),
Expand Down

0 comments on commit 61b77ca

Please sign in to comment.