finished the entire new live card thingie
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user