import 'package:flutter/material.dart'; import '../../globals.dart'; class ReflexCircularProgress extends StatefulWidget { final Color? color; final double? size; const ReflexCircularProgress({Key? key, this.color, this.size}) : super(key: key); @override _ReflexCircularProgressState createState() => _ReflexCircularProgressState(); } class _ReflexCircularProgressState extends State { @override Widget build(BuildContext context) { return Center( child: SizedBox( width: widget.size ?? 50.0, height: widget.size ?? 50.0, child: CircularProgressIndicator( valueColor: AlwaysStoppedAnimation( widget.color ?? Globals.RP_PRIMARY_COLOR), ), ), ); } }