mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-27 04:56:48 +00:00
* Add code_scan_listener package * Implement wedge controller widget * Update barcode settings widget - Allow user to choose which barcode scanner to use * Fix typo * Select barcode scanner widget based on user preference * Fix rendering issues for wedge controller * Update release notes * Add unit test for wedge scanner widget - Required some tweaks to other code * Use better library - https://github.com/fuadreza/flutter_barcode_listener - Fork of https://github.com/shaxxx/flutter_barcode_listener - Properly handles key "case" issues (shift, essentially) - Verified that it works correctly for multiple character types * Local copy of code, rather than relying on package which is not available on pub.dev * Fix unit test
33 lines
514 B
Dart
33 lines
514 B
Dart
|
|
|
|
import "package:flutter/material.dart";
|
|
import "package:flutter_overlay_loader/flutter_overlay_loader.dart";
|
|
|
|
/*
|
|
* Construct a circular progress indicator
|
|
*/
|
|
Widget progressIndicator() {
|
|
|
|
return Center(
|
|
child: CircularProgressIndicator()
|
|
);
|
|
}
|
|
|
|
|
|
void showLoadingOverlay(BuildContext? context) {
|
|
|
|
if (context == null) {
|
|
return;
|
|
}
|
|
|
|
Loader.show(
|
|
context,
|
|
themeData: Theme.of(context).copyWith(colorScheme: ColorScheme.fromSwatch())
|
|
);
|
|
}
|
|
|
|
|
|
void hideLoadingOverlay() {
|
|
Loader.hide();
|
|
}
|