tweaking download
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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…';
|
||||
}
|
||||
|
||||
@@ -340,7 +340,26 @@ class _CustomerWidgetState extends State<CustomerWidget> {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user