30 lines
782 B
Dart
30 lines
782 B
Dart
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<ReflexCircularProgress> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
child: SizedBox(
|
|
width: widget.size ?? 50.0,
|
|
height: widget.size ?? 50.0,
|
|
child: CircularProgressIndicator(
|
|
valueColor: AlwaysStoppedAnimation<Color>(
|
|
widget.color ?? Globals.RP_PRIMARY_COLOR),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |