From d089cec5a4deda5fab179c6d0791f4977cd8389d Mon Sep 17 00:00:00 2001 From: Freek van de Ven Date: Mon, 17 Jun 2024 22:00:23 +0200 Subject: [PATCH] fix: add return for loading indicator in post screen --- CHANGELOG.md | 1 + .../lib/src/screens/timeline_post_screen.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c23c81..95b8c19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 4.1.0 - Migrate to flutter 3.22 which deprecates the background and onBackground properties in the ThemeData and also removes MaterialStatePropertyAll - Add categorySelectionButtonSelectedTextColor and categorySelectionButtonUnselectedTextColor to the timeline theme to allow for the customization of the text color of the category selection buttons +- Show loading indicator when loading a post in the post screen ## 4.0.0 diff --git a/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart b/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart index d8d98f8..491b8b8 100644 --- a/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart +++ b/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart @@ -112,7 +112,7 @@ class _TimelinePostScreenState extends State { var timeFormat = widget.options.timeFormat ?? DateFormat('HH:mm'); if (isLoading) { - const Center( + return const Center( child: CircularProgressIndicator.adaptive(), ); }