From 8daa4c112e15da3290e50d4f25779ad92e196032 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 5 Dec 2023 10:56:36 -0700 Subject: [PATCH] Fix RTE when entering collections list --- lib/ui/screens/collection/widgets/_collection_list.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ui/screens/collection/widgets/_collection_list.dart b/lib/ui/screens/collection/widgets/_collection_list.dart index 75e42092..c8540468 100644 --- a/lib/ui/screens/collection/widgets/_collection_list.dart +++ b/lib/ui/screens/collection/widgets/_collection_list.dart @@ -37,6 +37,7 @@ class _CollectionListState extends State<_CollectionList> with GetItStateMixin { // Maintain scroll position when switching between vertical and horizontal orientation. // Multiplies or divides the current scroll position by the ratio of the vertical and horizontal card extents. void _maintainScrollPos() { + if (scrollController.hasClients == false) return; const extentFactor = _CollectionList._vtCardExtent / _CollectionList._hzCardExtent; final currentPx = scrollController.position.pixels; if (_vtMode.value == true) {