build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the loading indicator widget.

Implementation

@override
Widget build(BuildContext context) {
  return Center(
    child: SizedBox(
      width: size,
      height: size,
      child: CircularProgressIndicator(
        strokeWidth: 2.0,
        valueColor: AlwaysStoppedAnimation<Color>(
          color ?? Theme.of(context).primaryColor,
        ),
      ),
    ),
  );
}