forked from firka/firka
fix: dismissed lesson design
This commit is contained in:
@@ -175,7 +175,14 @@ class LessonWidget extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
Flexible(
|
||||
isDismissed
|
||||
? Text(
|
||||
data.l10n.class_dismissed,
|
||||
style: appStyle.fonts.B_14R.apply(
|
||||
color: appStyle.colors.textSecondary,
|
||||
),
|
||||
)
|
||||
: Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Card(
|
||||
shadowColor: Colors.transparent,
|
||||
@@ -185,7 +192,9 @@ class LessonWidget extends StatelessWidget {
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 6),
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 6,
|
||||
),
|
||||
child: Text(
|
||||
roomName,
|
||||
style: appStyle.fonts.B_14R.apply(
|
||||
@@ -200,7 +209,8 @@ class LessonWidget extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
SizedBox(width: 8),
|
||||
if (!isDismissed) SizedBox(width: 8),
|
||||
if (!isDismissed)
|
||||
Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
@@ -215,7 +225,10 @@ class LessonWidget extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
Text(
|
||||
lesson.end.toLocal().format(data.l10n, FormatMode.hmm),
|
||||
lesson.end.toLocal().format(
|
||||
data.l10n,
|
||||
FormatMode.hmm,
|
||||
),
|
||||
style: appStyle.fonts.B_14R.apply(
|
||||
color: appStyle.colors.textPrimary,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user