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
|
|
@ -3,6 +3,7 @@
|
|||
import "package:flutter/material.dart";
|
||||
import "package:flutter_overlay_loader/flutter_overlay_loader.dart";
|
||||
import "package:inventree/app_colors.dart";
|
||||
import "package:one_context/one_context.dart";
|
||||
|
||||
|
||||
/*
|
||||
|
|
@ -42,7 +43,9 @@ Widget progressIndicator() {
|
|||
}
|
||||
|
||||
|
||||
void showLoadingOverlay(BuildContext? context) {
|
||||
void showLoadingOverlay() {
|
||||
|
||||
BuildContext? context = OneContext().context;
|
||||
|
||||
if (context == null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue