Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Revert "remove unnecessary check"

Prateek Sunalf8643e8630d0
diff --git a/lib/ui/tabs/home_widget.dart b/lib/ui/tabs/home_widget.dart
index 039ef5183a..6df8898989 100644
--- a/lib/ui/tabs/home_widget.dart
+++ b/lib/ui/tabs/home_widget.dart
@@ -122,11 +122,13 @@ class _HomeWidgetState extends State<HomeWidget> {
debugPrint(
"TabChange going from $_selectedTabIndex to ${event.selectedIndex} souce: ${event.source}",
);
- _pageController.animateToPage(
- event.selectedIndex,
- duration: const Duration(milliseconds: 100),
- curve: Curves.easeIn,
- );
+ if (_pageController.hasClients) {
+ _pageController.animateToPage(
+ event.selectedIndex,
+ duration: const Duration(milliseconds: 100),
+ curve: Curves.easeIn,
+ );
+ }
}
});
_subscriptionPurchaseEvent =