showLoadingCircularProgressIndicator<T> method
UncompleteDocumentation
Implementation
// ignore: avoid_shadowing_type_parameters
Future<T?> showLoadingCircularProgressIndicator<T>({
bool barrierDismissible = false,
bool canPop = false,
}) async {
return await material.showDialog<T>(
context: this,
barrierDismissible: barrierDismissible,
useSafeArea: false,
useRootNavigator: false,
builder: (context) {
return PopScope(
canPop: canPop,
child: Center(
child: Container(
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: context.theme.dialogTheme.backgroundColor,
borderRadius: BorderRadius.circular(20),
),
child: CircularProgressIndicator(
color: context.theme.indicatorColor,
),
),
),
);
},
);
}