Skip to content

Commit

Permalink
Don't try to show perf card if offline
Browse files Browse the repository at this point in the history
  • Loading branch information
veloce committed Oct 23, 2024
1 parent 67aa3cb commit 4c3a246
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/src/view/home/home_tab_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,14 @@ class _HomeScreenState extends ConsumerState<HomeTabScreen> with RouteAware {
shouldShow: true,
child: _HelloWidget(),
),
_EditableWidget(
widget: EnabledWidget.perfCards,
shouldShow: session != null,
child: const AccountPerfCards(
padding: Styles.horizontalBodyPadding,
if (status.isOnline)
_EditableWidget(
widget: EnabledWidget.perfCards,
shouldShow: session != null,
child: const AccountPerfCards(
padding: Styles.horizontalBodyPadding,
),
),
),
_EditableWidget(
widget: EnabledWidget.quickPairing,
shouldShow: status.isOnline,
Expand Down Expand Up @@ -344,13 +345,14 @@ class _HomeScreenState extends ConsumerState<HomeTabScreen> with RouteAware {
shouldShow: true,
child: _HelloWidget(),
),
_EditableWidget(
widget: EnabledWidget.perfCards,
shouldShow: session != null,
child: const AccountPerfCards(
padding: Styles.bodySectionPadding,
if (status.isOnline)
_EditableWidget(
widget: EnabledWidget.perfCards,
shouldShow: session != null,
child: const AccountPerfCards(
padding: Styles.bodySectionPadding,
),
),
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expand Down

0 comments on commit 4c3a246

Please sign in to comment.