fix: remove rogue expanded widgets (#2320)

This commit is contained in:
ggurdin 2025-04-02 13:22:02 -04:00 committed by GitHub
parent f34f3acabc
commit 4d6f1196ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 26 deletions

View file

@ -237,19 +237,17 @@ class ActivitySuggestionsAreaState extends State<ActivitySuggestionsArea> {
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,
),
),
),

View file

@ -193,19 +193,17 @@ class PublicSpacesAreaState extends State<PublicSpacesArea> {
),
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,
),
),
),