💄 Change explore screen wide mode breakpoint
This commit is contained in:
@@ -217,7 +217,7 @@ class ExploreScreen extends HookConsumerWidget {
|
|||||||
floatingActionButtonLocation: TabbedFabLocation(context),
|
floatingActionButtonLocation: TabbedFabLocation(context),
|
||||||
body: Builder(
|
body: Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
final isWider = isWiderScreen(context);
|
final isWide = isWideScreen(context);
|
||||||
|
|
||||||
final bodyView = _buildActivityList(
|
final bodyView = _buildActivityList(
|
||||||
context,
|
context,
|
||||||
@@ -225,7 +225,7 @@ class ExploreScreen extends HookConsumerWidget {
|
|||||||
currentFilter.value,
|
currentFilter.value,
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isWider) {
|
if (isWide) {
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Flexible(flex: 3, child: bodyView.padding(left: 8)),
|
Flexible(flex: 3, child: bodyView.padding(left: 8)),
|
||||||
@@ -318,7 +318,7 @@ class ExploreScreen extends HookConsumerWidget {
|
|||||||
activityListNotifierProvider(filter).notifier,
|
activityListNotifierProvider(filter).notifier,
|
||||||
);
|
);
|
||||||
|
|
||||||
final isWider = isWiderScreen(context);
|
final isWide = isWideScreen(context);
|
||||||
|
|
||||||
return RefreshIndicator(
|
return RefreshIndicator(
|
||||||
onRefresh: () => Future.sync(activitiesNotifier.forceRefresh),
|
onRefresh: () => Future.sync(activitiesNotifier.forceRefresh),
|
||||||
@@ -333,7 +333,7 @@ class ExploreScreen extends HookConsumerWidget {
|
|||||||
widgetCount: widgetCount,
|
widgetCount: widgetCount,
|
||||||
endItemView: endItemView,
|
endItemView: endItemView,
|
||||||
activitiesNotifier: activitiesNotifier,
|
activitiesNotifier: activitiesNotifier,
|
||||||
contentOnly: isWider || filter != null,
|
contentOnly: isWide || filter != null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user