diff --git a/lib/pangea/analytics_downloads/analytics_dowload_dialog.dart b/lib/pangea/analytics_downloads/analytics_dowload_dialog.dart index 90db49bf9..f616a1be6 100644 --- a/lib/pangea/analytics_downloads/analytics_dowload_dialog.dart +++ b/lib/pangea/analytics_downloads/analytics_dowload_dialog.dart @@ -439,19 +439,20 @@ class AnalyticsDownloadDialogState extends State { ], ), ), - Padding( - padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0), - child: OutlinedButton( - onPressed: _downloading ? null : _downloadAnalytics, - child: _downloading - ? const SizedBox( - height: 10, - width: 100, - child: LinearProgressIndicator(), - ) - : Text(L10n.of(context).download), + if (!_downloaded) + Padding( + padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0), + child: OutlinedButton( + onPressed: _downloading ? null : _downloadAnalytics, + child: _downloading + ? const SizedBox( + height: 10, + width: 100, + child: LinearProgressIndicator(), + ) + : Text(L10n.of(context).download), + ), ), - ), AnimatedSize( duration: FluffyThemes.animationDuration, child: _statusText != null diff --git a/lib/pangea/space_analytics/download_space_analytics_dialog.dart b/lib/pangea/space_analytics/download_space_analytics_dialog.dart index 8fe58bc0d..cb89a6241 100644 --- a/lib/pangea/space_analytics/download_space_analytics_dialog.dart +++ b/lib/pangea/space_analytics/download_space_analytics_dialog.dart @@ -378,23 +378,24 @@ class DownloadAnalyticsDialogState extends State { ), ), ), - Padding( - padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0), - child: OutlinedButton( - onPressed: _loading || !_initialized ? null : _runDownload, - child: _initialized && !_loading - ? Text( - _loading - ? L10n.of(context).downloading - : L10n.of(context).download, - ) - : const SizedBox( - height: 10, - width: 100, - child: LinearProgressIndicator(), - ), + if (!_downloaded) + Padding( + padding: const EdgeInsets.fromLTRB(8.0, 16.0, 8.0, 8.0), + child: OutlinedButton( + onPressed: _loading || !_initialized ? null : _runDownload, + child: _initialized && !_loading + ? Text( + _loading + ? L10n.of(context).downloading + : L10n.of(context).download, + ) + : const SizedBox( + height: 10, + width: 100, + child: LinearProgressIndicator(), + ), + ), ), - ), AnimatedSize( duration: FluffyThemes.animationDuration, child: _statusText != null