Skip to content

Commit ffc21b2

Browse files
committed
chore: begin work on making activity suggestions into a row on large screens
1 parent e32f39e commit ffc21b2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

lib/pangea/activity_suggestions/activity_suggestions_area.dart

+12-6
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,18 @@ class ActivitySuggestionsAreaState extends State<ActivitySuggestionsArea> {
123123
vertical: 16.0,
124124
horizontal: FluffyThemes.isColumnMode(context) ? 16.0 : 0.0,
125125
),
126-
child: SingleChildScrollView(
127-
controller: _scrollController,
128-
child: Wrap(
129-
children: cards,
130-
),
131-
),
126+
child: FluffyThemes.isColumnMode(context)
127+
? ListView(
128+
controller: _scrollController,
129+
scrollDirection: Axis.horizontal,
130+
children: cards,
131+
)
132+
: SingleChildScrollView(
133+
controller: _scrollController,
134+
child: Wrap(
135+
children: cards,
136+
),
137+
),
132138
);
133139
}
134140
}

0 commit comments

Comments
 (0)