Hide 'Try again' button on activity timeout (#3453)

pull/2245/head
Kelrap 4 months ago committed by GitHub
parent 245471f7a2
commit ba6ec047a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -216,11 +216,13 @@ 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,
foregroundColor:
theme.colorScheme.onPrimaryContainer,
padding: const EdgeInsets.symmetric(
horizontal: 12.0,
),

Loading…
Cancel
Save