Reenable try again button for activity search timeout (#3599)

This commit is contained in:
Kelrap 2025-07-31 13:29:51 -04:00 committed by GitHub
parent 0b3ed17c63
commit 729d1d6b41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -213,19 +213,17 @@ class ActivitySuggestionsAreaState extends State<ActivitySuggestionsArea> {
? L10n.of(context).activitySuggestionTimeoutMessage
: L10n.of(context).errorFetchingActivitiesMessage,
),
if (!_timeout)
ElevatedButton(
onPressed: _setActivityItems,
style: ElevatedButton.styleFrom(
backgroundColor: theme.colorScheme.primaryContainer,
foregroundColor:
theme.colorScheme.onPrimaryContainer,
padding: const EdgeInsets.symmetric(
horizontal: 12.0,
),
ElevatedButton(
onPressed: _setActivityItems,
style: ElevatedButton.styleFrom(
backgroundColor: theme.colorScheme.primaryContainer,
foregroundColor: theme.colorScheme.onPrimaryContainer,
padding: const EdgeInsets.symmetric(
horizontal: 12.0,
),
child: Text(L10n.of(context).tryAgain),
),
child: Text(L10n.of(context).tryAgain),
),
],
),
)