From 53f601dbada81633a0f5eab73fbaf012efc5fcc1 Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Tue, 7 Oct 2025 13:12:44 -0400 Subject: [PATCH] chore: padding adjustment in selected course view (#4267) --- .../course_creation/selected_course_view.dart | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/pangea/course_creation/selected_course_view.dart b/lib/pangea/course_creation/selected_course_view.dart index b6d48d1a6..4a174f0b9 100644 --- a/lib/pangea/course_creation/selected_course_view.dart +++ b/lib/pangea/course_creation/selected_course_view.dart @@ -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(