Reenable try again button for activity search timeout (#3599)
This commit is contained in:
parent
0b3ed17c63
commit
729d1d6b41
1 changed files with 9 additions and 11 deletions
|
|
@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue