|
@@ -1,16 +1,17 @@
|
|
-import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:photos/theme/ente_theme.dart';
|
|
import 'package:photos/theme/ente_theme.dart';
|
|
|
|
|
|
class EnteLoadingWidget extends StatelessWidget {
|
|
class EnteLoadingWidget extends StatelessWidget {
|
|
final Color? color;
|
|
final Color? color;
|
|
- const EnteLoadingWidget({this.color, Key? key}) : super(key: key);
|
|
|
|
|
|
+ final bool is20pts;
|
|
|
|
+ const EnteLoadingWidget({this.is20pts = false, this.color, Key? key})
|
|
|
|
+ : super(key: key);
|
|
|
|
|
|
@override
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
return Center(
|
|
return Center(
|
|
child: Padding(
|
|
child: Padding(
|
|
- padding: const EdgeInsets.all(5),
|
|
|
|
|
|
+ padding: EdgeInsets.all(is20pts ? 3 : 5),
|
|
child: SizedBox.fromSize(
|
|
child: SizedBox.fromSize(
|
|
size: const Size.square(14),
|
|
size: const Size.square(14),
|
|
child: CircularProgressIndicator(
|
|
child: CircularProgressIndicator(
|