From a6216f6e819487859eddc7b401c8295cc04c96e3 Mon Sep 17 00:00:00 2001 From: verboomp Date: Fri, 6 Feb 2026 14:41:16 +0100 Subject: [PATCH] tweaking download --- .../lib/l10n/app_de.arb | 4 ++++ .../lib/l10n/app_localizations.dart | 6 ++++++ .../lib/l10n/app_localizations_de.dart | 3 +++ .../lib/pages/customer/customer_widget.dart | 21 ++++++++++++++++++- 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/hartmann-foto-documentation-frontend/lib/l10n/app_de.arb b/hartmann-foto-documentation-frontend/lib/l10n/app_de.arb index bd7b2cc..300afc5 100644 --- a/hartmann-foto-documentation-frontend/lib/l10n/app_de.arb +++ b/hartmann-foto-documentation-frontend/lib/l10n/app_de.arb @@ -148,5 +148,9 @@ "pictureWidgetNotFound": "Das Bild konnte nicht gefunden werden.", "@pictureWidgetNotFound": { "description": "Picture not found error message" + }, + "customerWidgetDownloadInProgress": "Download wird vorbereitet…", + "@customerWidgetDownloadInProgress": { + "description": "Download in progress message" } } \ No newline at end of file diff --git a/hartmann-foto-documentation-frontend/lib/l10n/app_localizations.dart b/hartmann-foto-documentation-frontend/lib/l10n/app_localizations.dart index e881096..4ae5af3 100644 --- a/hartmann-foto-documentation-frontend/lib/l10n/app_localizations.dart +++ b/hartmann-foto-documentation-frontend/lib/l10n/app_localizations.dart @@ -291,6 +291,12 @@ abstract class AppLocalizations { /// In de, this message translates to: /// **'Das Bild konnte nicht gefunden werden.'** String get pictureWidgetNotFound; + + /// Download in progress message + /// + /// In de, this message translates to: + /// **'Download wird vorbereitet…'** + String get customerWidgetDownloadInProgress; } class _AppLocalizationsDelegate diff --git a/hartmann-foto-documentation-frontend/lib/l10n/app_localizations_de.dart b/hartmann-foto-documentation-frontend/lib/l10n/app_localizations_de.dart index 6a94e75..89fa4a0 100644 --- a/hartmann-foto-documentation-frontend/lib/l10n/app_localizations_de.dart +++ b/hartmann-foto-documentation-frontend/lib/l10n/app_localizations_de.dart @@ -114,4 +114,7 @@ class AppLocalizationsDe extends AppLocalizations { @override String get pictureWidgetNotFound => 'Das Bild konnte nicht gefunden werden.'; + + @override + String get customerWidgetDownloadInProgress => 'Download wird vorbereitet…'; } diff --git a/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart b/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart index 7c12996..ce74166 100644 --- a/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart +++ b/hartmann-foto-documentation-frontend/lib/pages/customer/customer_widget.dart @@ -340,7 +340,26 @@ class _CustomerWidgetState extends State { showDialog( context: context, barrierDismissible: false, - builder: (context) => const Center(child: CircularProgressIndicator()), + builder: (context) => Dialog( + backgroundColor: Colors.white, + child: Padding( + padding: const EdgeInsets.all(24.0), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + const CircularProgressIndicator(), + const SizedBox(width: 16), + Text( + AppLocalizations.of(context)!.customerWidgetDownloadInProgress, + style: TextStyle( + fontFamily: _generalStyle.fontFamily, + fontSize: 16, + ), + ), + ], + ), + ), + ), ); try {