visual bug fixes

This commit is contained in:
Kima
2024-05-03 16:51:43 +02:00
parent 4abd16ab76
commit d5f583a0d2
4 changed files with 44 additions and 32 deletions

View File

@@ -27,7 +27,7 @@ class LessonTile extends StatelessWidget {
this.currentLessonIndicator = true,
this.padding,
this.contentPadding,
this.showSubTiles = false,
this.showSubTiles = true,
});
final Lesson lesson;
@@ -151,7 +151,8 @@ class LessonTile extends StatelessWidget {
child: PanelTitle(title: Text(lesson.name)),
),
child: Padding(
padding: EdgeInsets.only(bottom: subtiles.isEmpty ? 0.0 : 12.0),
padding: EdgeInsets.only(
bottom: (subtiles.isNotEmpty && showSubTiles) ? 12.0 : 0.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [