You've already forked flutter-rp-example
First commit
This commit is contained in:
30
lib/widgets/components/reflex_circular_progress.dart
Normal file
30
lib/widgets/components/reflex_circular_progress.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
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),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user