forked from firka/firka
tt: remove shadow from breaks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user