mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-18 21:25:38 +00:00
Refactor loading overlay
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user