mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
23 lines
584 B
Dart
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),
|
|
),
|
|
);
|
|
}
|
|
}
|