From 4d6f1196ba51aaa3d4b907d825a9f7d3567dfc4c Mon Sep 17 00:00:00 2001 From: ggurdin <46800240+ggurdin@users.noreply.github.com> Date: Wed, 2 Apr 2025 13:22:02 -0400 Subject: [PATCH] fix: remove rogue expanded widgets (#2320) --- .../activity_suggestions_area.dart | 24 +++++++++---------- .../public_spaces/public_spaces_area.dart | 24 +++++++++---------- 2 files changed, 22 insertions(+), 26 deletions(-) diff --git a/lib/pangea/activity_suggestions/activity_suggestions_area.dart b/lib/pangea/activity_suggestions/activity_suggestions_area.dart index 61ee9cbec..1345964f1 100644 --- a/lib/pangea/activity_suggestions/activity_suggestions_area.dart +++ b/lib/pangea/activity_suggestions/activity_suggestions_area.dart @@ -237,19 +237,17 @@ class ActivitySuggestionsAreaState extends State { Container( decoration: const BoxDecoration(), child: scrollDirection == Axis.horizontal - ? Expanded( - child: Scrollbar( - thumbVisibility: true, - controller: _scrollController, - child: Padding( - padding: const EdgeInsets.only(bottom: 16.0), - child: SingleChildScrollView( - controller: _scrollController, - scrollDirection: Axis.horizontal, - child: Row( - spacing: 8.0, - children: cards, - ), + ? Scrollbar( + thumbVisibility: true, + controller: _scrollController, + child: Padding( + padding: const EdgeInsets.only(bottom: 16.0), + child: SingleChildScrollView( + controller: _scrollController, + scrollDirection: Axis.horizontal, + child: Row( + spacing: 8.0, + children: cards, ), ), ), diff --git a/lib/pangea/public_spaces/public_spaces_area.dart b/lib/pangea/public_spaces/public_spaces_area.dart index 0dfa372de..da1fde2b4 100644 --- a/lib/pangea/public_spaces/public_spaces_area.dart +++ b/lib/pangea/public_spaces/public_spaces_area.dart @@ -193,19 +193,17 @@ class PublicSpacesAreaState extends State { ), Container( decoration: const BoxDecoration(), - child: Expanded( - child: Scrollbar( - thumbVisibility: true, - controller: _scrollController, - child: Padding( - padding: const EdgeInsets.only(bottom: 16.0), - child: SingleChildScrollView( - controller: _scrollController, - scrollDirection: Axis.horizontal, - child: Row( - spacing: 8.0, - children: cards, - ), + child: Scrollbar( + thumbVisibility: true, + controller: _scrollController, + child: Padding( + padding: const EdgeInsets.only(bottom: 16.0), + child: SingleChildScrollView( + controller: _scrollController, + scrollDirection: Axis.horizontal, + child: Row( + spacing: 8.0, + children: cards, ), ), ),