showLoadingCircularProgressIndicator<T> method
Future<T?>
showLoadingCircularProgressIndicator<
T>({ - bool barrierDismissible = false,
- bool canPop = false,
})
Implementation
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.dialogBackgroundColor,
borderRadius: BorderRadius.circular(20),
),
child: CircularProgressIndicator(
color: context.theme.indicatorColor,
),
),
),
);
},
);
}