loading method
Future<void>
loading(
- BuildContext context,
- String title,
- String message,
- Function funcBackground,
Implementation
Future<void> loading(
BuildContext context,
String title,
String message,
Function funcBackground,
) async {
return showDialog<void>(
context: context,
barrierDismissible: false,
builder: (BuildContext ctx) {
return OmegaLoadingDialogWidget(
funcBackground,
title: title,
description: message,
textColor: OmegaLibConfig.dialogFieldStyle.textColor,
bgColor: OmegaLibConfig.dialogFieldStyle.bgColor,
);
},
);
}