chore: padding adjustment in selected course view (#4267)
This commit is contained in:
parent
1e0fe2828c
commit
53f601dbad
1 changed files with 11 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue