chore: add no courses found indicator (#4135)

This commit is contained in:
ggurdin 2025-09-25 12:08:44 -04:00 committed by GitHub
parent 70bfe0feef
commit e0c8a7f5f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,