1
0
forked from firka/firka

tt: remove shadow from breaks

This commit is contained in:
2025-09-04 17:49:52 +02:00
parent 7bf3eaca03
commit 00871e93be
2 changed files with 8 additions and 0 deletions

View File

@@ -8,12 +8,14 @@ class FirkaCard extends StatelessWidget {
final List<Widget> left;
final List<Widget>? center;
final List<Widget>? right;
final bool shadow;
final Widget? extra;
final Attach? attached;
final Color? color;
const FirkaCard(
{required this.left,
this.shadow = true,
this.center,
this.right,
this.extra,
@@ -34,6 +36,7 @@ class FirkaCard extends StatelessWidget {
width: MediaQuery.of(context).size.width,
child: Card(
color: color ?? appStyle.colors.card,
shadowColor: shadow ? null : Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(attached == Attach.top
@@ -72,6 +75,7 @@ class FirkaCard extends StatelessWidget {
width: MediaQuery.of(context).size.width,
child: Card(
color: color ?? appStyle.colors.card,
shadowColor: shadow ? null : Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(attached == Attach.top

View File

@@ -164,6 +164,7 @@ class LessonWidget extends StatelessWidget {
final preBreak = emptyClass.start.difference(lesson.end).inMinutes;
final postBreak = breakEnd.difference(emptyClass.end).inMinutes;
elements.add(FirkaCard(
shadow: false,
left: [
Text(data.l10n.breakTxt,
style: appStyle.fonts.B_14SB
@@ -212,6 +213,7 @@ class LessonWidget extends StatelessWidget {
],
));
elements.add(FirkaCard(
shadow: false,
left: [
Text(data.l10n.breakTxt,
style: appStyle.fonts.B_14SB
@@ -226,6 +228,7 @@ class LessonWidget extends StatelessWidget {
));
} else {
elements.add(FirkaCard(
shadow: false,
left: [
Text(data.l10n.breakTxt,
style: appStyle.fonts.B_14SB
@@ -241,6 +244,7 @@ class LessonWidget extends StatelessWidget {
}
} else {
elements.add(FirkaCard(
shadow: false,
left: [
Text(data.l10n.breakTxt,
style: appStyle.fonts.B_14SB