circularLoader static method
Implementation
static circularLoader(BuildContext context) {
return PopScope(
canPop: false,
child: SizedBox(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child: SimpleDialog(
elevation: 0.0,
backgroundColor: Colors.transparent,
children: <Widget>[
Center(
child: Column(children: [
CircularProgressIndicator(
color: Theme.of(context).colorScheme.secondary,
),
const SizedBox(
height: 10,
),
const Text(
'Loading...',
style: TextStyle(
color: Color.fromRGBO(0, 0, 0, 1),
fontFamily: 'Roboto',
fontSize: 16,
fontWeight: FontWeight.w700),
)
]),
)
]),
));
}