chore: add no courses found indicator (#4135)
This commit is contained in:
parent
70bfe0feef
commit
e0c8a7f5f4
1 changed files with 6 additions and 0 deletions
|
|
@ -119,6 +119,12 @@ class NewCourseController extends State<NewCourse> with CourseSearchProvider {
|
|||
);
|
||||
}
|
||||
|
||||
if (courses.isEmpty) {
|
||||
return Center(
|
||||
child: Text(L10n.of(context).noCoursesFound),
|
||||
);
|
||||
}
|
||||
|
||||
return Expanded(
|
||||
child: ListView.builder(
|
||||
itemCount: courses.length,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue