getActivityIndicator method

Widget getActivityIndicator(
  1. BuildContext context,
  2. Color foregroundColor,
  3. Color backgroundColor
)

Implementation

Widget getActivityIndicator(
    BuildContext context, Color foregroundColor, Color backgroundColor) {
  return Center(child: CircularProgressIndicator(color: foregroundColor));
}