loadingView method
Implementation
Widget loadingView(BuildContext context,Color color) {
return Center(
child: Container(
decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(16)),
height: 80,
alignment: Alignment.center,
padding: EdgeInsets.all(20),
margin: EdgeInsets.only(left: 90, right: 90),
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
CircularProgressIndicator(
color: color,
),
Expanded(
child: DefaultText(
alignment: Alignment.center,
margin: EdgeInsets.only(left: 20),
textLabel: "Loading" + "...",
),
)
],
),
),
);
}