π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
import 'package:ente_ui/theme/ente_theme.dart';
import 'package:flutter/material.dart';
class EnteLoadingWidget extends StatelessWidget {
final Color? color;
final double size;
final double padding;
final Alignment alignment;
const EnteLoadingWidget({
this.color,
this.size = 14,
this.padding = 5,
this.alignment = Alignment.center,
super.key,
});
@override
Widget build(BuildContext context) {
return Align(
alignment: alignment,
child: Padding(
padding: EdgeInsets.all(padding),
child: SizedBox.fromSize(
size: Size.square(size),
child: RepaintBoundary(
child: CircularProgressIndicator(
strokeWidth: 1.5,
color: color ?? getEnteColorScheme(context).strokeBase,
strokeCap: StrokeCap.round,
),
),
),
),
);
}
}