flutter-rp-example/lib/widgets/components/reflex_circular_progress.dart
Nathan SOULIER fff5617757 First commit
2025-03-24 10:12:56 +01:00

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),
),
),
);
}
}