Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityDarkLab committed Jan 29, 2024
1 parent ab60063 commit 693db52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/views/course_view/components/course_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CourseCard extends StatelessWidget {
onPinUnpin!,
isPinned!,
isLoggedIn,
)
),
),
),
);
Expand Down
6 changes: 3 additions & 3 deletions lib/views/course_view/courses_overview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CourseOverviewState extends ConsumerState<CourseOverview> {
Widget build(BuildContext context) {
if (isLoading) {
// Show a loading spinner when data is being fetched
return Center(child: CircularProgressIndicator());
return const Center(child: CircularProgressIndicator());
}
final userCourses = ref.watch(userViewModelProvider).userCourses ?? [];
final publicCourses = ref.watch(userViewModelProvider).publicCourses ?? [];
Expand Down Expand Up @@ -165,7 +165,7 @@ class CourseOverviewState extends ConsumerState<CourseOverview> {

Future<void> _refreshData() async {
setState(
() => isLoading = true); // Set loading to true at the start of refresh
() => isLoading = true,); // Set loading to true at the start of refresh

final userViewModelNotifier = ref.read(userViewModelProvider.notifier);
await userViewModelNotifier.fetchUserCourses();
Expand All @@ -174,6 +174,6 @@ class CourseOverviewState extends ConsumerState<CourseOverview> {
await ref.read(videoViewModelProvider.notifier).fetchLiveThumbnails();

setState(() =>
isLoading = false); // Set loading to false once refresh is complete
isLoading = false,); // Set loading to false once refresh is complete
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ class CoursesList extends ConsumerWidget {
);
},
);
});
},);
}
}

0 comments on commit 693db52

Please sign in to comment.