loadingIndicator method

Widget loadingIndicator()

Implementation

Widget loadingIndicator() => Positioned.fill(
  child: Container(
    decoration: BoxDecoration(
      borderRadius: borderRadius,
      color: Colors.grey.withAlpha(150),
    ),
    child: Center(
      child: SizedBox(
        height: (widget.height ?? 40) - 20,
        width: (widget.height ?? 40) - 20,
        child: CircularProgressIndicator(
          strokeWidth: 3.0,
          color: Colors.black.withAlpha(150),
        ),
      ),
    ),
  ),
);