immich/mobile-v2/lib/presentation/components/common/loading_indaticator.widget.dart
2025-02-26 08:58:19 +05:30

23 lines
584 B
Dart

import 'package:flutter/material.dart';
class ImLoadingIndicator extends StatelessWidget {
const ImLoadingIndicator({super.key, this.dimension, this.strokeWidth});
/// The size of the indicator with a default of 24
final double? dimension;
/// The width of the indicator with a default of 2
final double? strokeWidth;
@override
Widget build(BuildContext context) {
return SizedBox(
width: dimension ?? 24,
height: dimension ?? 24,
child: FittedBox(
child: CircularProgressIndicator(strokeWidth: strokeWidth ?? 2),
),
);
}
}