We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2b80c5 + 53ecb8e commit 0a0b0f8Copy full SHA for 0a0b0f8
1 file changed
lib/features/lessons/lesson_mode_screen.dart
@@ -183,9 +183,22 @@ class _LessonModeScreenState extends ConsumerState<LessonModeScreen> {
183
}
184
185
186
+ // Add extra bottom padding when the FAB is visible so the last
187
+ // list item is not obscured by it.
188
+ // 56dp is the standard Material extended FAB height.
189
+ const kExtendedFabHeight = 56.0;
190
+ final hasFab = gradeCategories.length > 1;
191
+ final listPadding = hasFab
192
+ ? appScreenPadding.copyWith(
193
+ bottom: appScreenPadding.bottom +
194
+ kFloatingActionButtonMargin +
195
+ kExtendedFabHeight,
196
+ )
197
+ : appScreenPadding;
198
+
199
return ContentConstraints(
200
child: ListView(
- padding: appScreenPadding,
201
+ padding: listPadding,
202
children: [
203
LessonContextCard(
204
sessionController: _sessionController,
0 commit comments