forked from firka/firka
fix: bottom sheets
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -67,6 +67,25 @@ class InfoCard extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
factory InfoCard.testDesc(Test test) {
|
||||
final color = appStyle.colors.accent;
|
||||
|
||||
return InfoCard(
|
||||
icon: FilledCircle(
|
||||
diameter: 36,
|
||||
color: color.withAlpha(38),
|
||||
child: FirkaIconWidget(
|
||||
FirkaIconType.majesticons,
|
||||
Majesticon.editPen4Solid,
|
||||
color: color,
|
||||
size: 24,
|
||||
),
|
||||
),
|
||||
texts: [test.theme.firstUpper(), test.method.description.firstUpper()],
|
||||
right: [buildSubject(color, test.subject)],
|
||||
);
|
||||
}
|
||||
|
||||
factory InfoCard.messageItem(MessageItem item) {
|
||||
return InfoCard(
|
||||
icon: FilledCircle(
|
||||
|
||||
@@ -236,7 +236,7 @@ class LessonWidget extends StatelessWidget {
|
||||
accent,
|
||||
secondary,
|
||||
bgColor,
|
||||
test,
|
||||
test!,
|
||||
);
|
||||
},
|
||||
child: FirkaCard.single(
|
||||
|
||||
Reference in New Issue
Block a user