tweaking download
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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…';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user