immich_loading_indicator.dart 591 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. class ImmichLoadingIndicator extends StatelessWidget {
  3. const ImmichLoadingIndicator({
  4. Key? key,
  5. }) : super(key: key);
  6. @override
  7. Widget build(BuildContext context) {
  8. return Container(
  9. height: 60,
  10. width: 60,
  11. decoration: BoxDecoration(
  12. color: Theme.of(context).primaryColor.withAlpha(200),
  13. borderRadius: BorderRadius.circular(10),
  14. ),
  15. padding: const EdgeInsets.all(15),
  16. child: const CircularProgressIndicator(
  17. color: Colors.white,
  18. strokeWidth: 2,
  19. ),
  20. );
  21. }
  22. }