Hide 'Try again' button on activity timeout (#3453)
This commit is contained in:
parent
245471f7a2
commit
ba6ec047a9
1 changed files with 11 additions and 9 deletions
|
|
@ -216,17 +216,19 @@ class ActivitySuggestionsAreaState extends State<ActivitySuggestionsArea> {
|
|||
? L10n.of(context).activitySuggestionTimeoutMessage
|
||||
: L10n.of(context).errorFetchingActivitiesMessage,
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: _setActivityItems,
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: theme.colorScheme.primaryContainer,
|
||||
foregroundColor: theme.colorScheme.onPrimaryContainer,
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 12.0,
|
||||
if (!_timeout)
|
||||
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