mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Refactor loading overlay
This commit is contained in:
parent
d5a9f4310e
commit
e44d1ea5b4
22 changed files with 44 additions and 31 deletions
|
|
@ -50,7 +50,7 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
|
|||
|
||||
Future <void> loadSettings(BuildContext context) async {
|
||||
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
|
||||
barcodeSounds = await InvenTreeSettingsManager().getValue(INV_SOUNDS_BARCODE, true) as bool;
|
||||
serverSounds = await InvenTreeSettingsManager().getValue(INV_SOUNDS_SERVER, true) as bool;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ class _InvenTreeLoginState extends State<InvenTreeLoginWidget> {
|
|||
currentFocus.unfocus();
|
||||
}
|
||||
|
||||
showLoadingOverlay(context);
|
||||
showLoadingOverlay();
|
||||
|
||||
// Attempt login
|
||||
final response = await InvenTreeAPI().fetchToken(widget.profile, username, password);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue