chore: padding adjustment in selected course view (#4267)

This commit is contained in:
ggurdin 2025-10-07 13:12:44 -04:00 committed by GitHub
parent 1e0fe2828c
commit 53f601dbad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,9 +55,13 @@ class SelectedCourseView extends StatelessWidget {
children: [
Expanded(
child: Padding(
padding: const EdgeInsets.all(12.0),
padding: const EdgeInsets.only(
top: 12.0,
left: 12.0,
right: 12.0,
),
child: ListView.builder(
itemCount: course.loadedTopics.length + 1,
itemCount: course.loadedTopics.length + 2,
itemBuilder: (context, index) {
if (index == 0) {
return Column(
@ -123,6 +127,11 @@ class SelectedCourseView extends StatelessWidget {
}
index--;
if (index >= course.loadedTopics.length) {
return const SizedBox(height: 12.0);
}
final topic = course.loadedTopics[index];
return Padding(
padding: const EdgeInsets.symmetric(