finished the entire new live card thingie

This commit is contained in:
Kima
2024-05-02 20:28:35 +02:00
parent 6ba105f08c
commit 93d56fec28
4 changed files with 394 additions and 72 deletions

View File

@@ -213,8 +213,8 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
// }
// TODO: REMOVE IN PRODUCTION BUILD!!!
print(_liveCard.currentState);
_liveCard.currentState = LiveCardState.morning;
// print(_liveCard.currentState);
// _liveCard.currentState = LiveCardState.duringBreak;
return Scaffold(
body: Stack(
@@ -326,8 +326,10 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
expandedHeight: _liveCardAnimation.value *
(_liveCard.currentState == LiveCardState.morning
? 274.0
: (_liveCard.currentState ==
LiveCardState.duringLesson
: ((_liveCard.currentState ==
LiveCardState.duringLesson ||
_liveCard.currentState ==
LiveCardState.duringBreak)
? 288.0
: 238.0)),
@@ -340,7 +342,9 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
top: ((_liveCard.currentState ==
LiveCardState.morning ||
_liveCard.currentState ==
LiveCardState.duringLesson)
LiveCardState.duringLesson ||
_liveCard.currentState ==
LiveCardState.duringBreak)
? 0.0
: 62.0) +
MediaQuery.of(context).padding.top,