diff --git a/assets/release_notes.md b/assets/release_notes.md index 7829a841..aaeee437 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -5,6 +5,7 @@ - Fixes form display bug for stock adjustment actions - User permissions are now queried from the InvenTree server - Any "unauthorized" actions are now not displayed +- Uses server-side pagination, providing a significant increase in UI performance ## 0.1.2 - February 2021 --- diff --git a/assets/sounds/error_tone.mp3 b/assets/sounds/barcode_error.mp3 similarity index 100% rename from assets/sounds/error_tone.mp3 rename to assets/sounds/barcode_error.mp3 diff --git a/assets/sounds/server_error.mp3 b/assets/sounds/server_error.mp3 new file mode 100644 index 00000000..1db26e2b Binary files /dev/null and b/assets/sounds/server_error.mp3 differ diff --git a/lib/widget/dialogs.dart b/lib/widget/dialogs.dart index 4c7ccacd..712866b1 100644 --- a/lib/widget/dialogs.dart +++ b/lib/widget/dialogs.dart @@ -113,6 +113,8 @@ Future showServerError(String title, String description) async { title = I18N.of(OneContext().context).serverError; } + // TODO - Play audio notification + showSnackIcon( title, success: false, diff --git a/pubspec.yaml b/pubspec.yaml index 7c573c95..b8a69244 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -64,7 +64,8 @@ flutter: - assets/image/icon.png - assets/release_notes.md - assets/sounds/barcode_scan.mp3 - - assets/sounds/error_tone.mp3 + - assets/sounds/barcode_error.mp3 + - assets/sounds/server_error.mp3 # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware.