2022-04-24 04:08:45 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2023-11-09 18:19:53 +02:00
|
|
|
import 'package:immich_mobile/extensions/build_context_extensions.dart';
|
2022-04-24 04:08:45 +02:00
|
|
|
|
|
|
|
class ImmichLoadingIndicator extends StatelessWidget {
|
2023-10-30 19:17:34 +02:00
|
|
|
final double? borderRadius;
|
|
|
|
|
2022-04-24 04:08:45 +02:00
|
|
|
const ImmichLoadingIndicator({
|
|
|
|
Key? key,
|
2023-10-30 19:17:34 +02:00
|
|
|
this.borderRadius,
|
2022-04-24 04:08:45 +02:00
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
height: 60,
|
|
|
|
width: 60,
|
|
|
|
decoration: BoxDecoration(
|
2023-11-09 18:19:53 +02:00
|
|
|
color: context.primaryColor.withAlpha(200),
|
2023-10-30 19:17:34 +02:00
|
|
|
borderRadius: BorderRadius.circular(borderRadius ?? 10),
|
2022-04-24 04:08:45 +02:00
|
|
|
),
|
2022-11-11 19:52:02 +02:00
|
|
|
padding: const EdgeInsets.all(15),
|
2022-11-30 18:58:07 +02:00
|
|
|
child: const CircularProgressIndicator(
|
|
|
|
color: Colors.white,
|
|
|
|
strokeWidth: 2,
|
|
|
|
),
|
2022-04-24 04:08:45 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|