barcode_scanner/lib/components/loading_progress_component.dart
2025-06-19 16:41:41 +03:00

31 lines
659 B
Dart

import 'package:flutter/material.dart';
class LoadingProgressComponent extends StatelessWidget {
const LoadingProgressComponent({
super.key,
this.color,
this.height,
this.width,
this.value,
});
final Color? color;
final double? height;
final double? width;
final double? value;
@override
Widget build(BuildContext context) {
return SizedBox(
height: height ?? 20,
width: width ?? 20,
child: CircularProgressIndicator(
value: value,
strokeWidth: 2,
valueColor: AlwaysStoppedAnimation<Color>(
color ?? Theme.of(context).primaryColor,
),
),
);
}
}