loader function

Widget loader()

Implementation

Widget loader() {
  if (Platform.isIOS) {
    return Center(
      child: CupertinoActivityIndicator(color: redColor,),
    );
  } else {
    return Center(
      child: CircularProgressIndicator(color: redColor,),
    );
  }
}