tweaking download

This commit is contained in:
verboomp
2026-02-06 14:41:16 +01:00
parent 2955a7eb1c
commit a6216f6e81
4 changed files with 33 additions and 1 deletions

View File

@@ -148,5 +148,9 @@
"pictureWidgetNotFound": "Das Bild konnte nicht gefunden werden.", "pictureWidgetNotFound": "Das Bild konnte nicht gefunden werden.",
"@pictureWidgetNotFound": { "@pictureWidgetNotFound": {
"description": "Picture not found error message" "description": "Picture not found error message"
},
"customerWidgetDownloadInProgress": "Download wird vorbereitet…",
"@customerWidgetDownloadInProgress": {
"description": "Download in progress message"
} }
} }

View File

@@ -291,6 +291,12 @@ abstract class AppLocalizations {
/// In de, this message translates to: /// In de, this message translates to:
/// **'Das Bild konnte nicht gefunden werden.'** /// **'Das Bild konnte nicht gefunden werden.'**
String get pictureWidgetNotFound; String get pictureWidgetNotFound;
/// Download in progress message
///
/// In de, this message translates to:
/// **'Download wird vorbereitet…'**
String get customerWidgetDownloadInProgress;
} }
class _AppLocalizationsDelegate class _AppLocalizationsDelegate

View File

@@ -114,4 +114,7 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get pictureWidgetNotFound => 'Das Bild konnte nicht gefunden werden.'; String get pictureWidgetNotFound => 'Das Bild konnte nicht gefunden werden.';
@override
String get customerWidgetDownloadInProgress => 'Download wird vorbereitet…';
} }

View File

@@ -340,7 +340,26 @@ class _CustomerWidgetState extends State<CustomerWidget> {
showDialog( showDialog(
context: context, context: context,
barrierDismissible: false, 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 { try {