2022-12-21 16:17:53 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-08-26 08:11:35 +00:00
|
|
|
import 'package:lottie/lottie.dart';
|
|
|
|
import 'package:stackwallet/utilities/assets.dart';
|
|
|
|
|
|
|
|
class LoadingIndicator extends StatelessWidget {
|
|
|
|
const LoadingIndicator({
|
|
|
|
Key? key,
|
|
|
|
this.width,
|
|
|
|
this.height,
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final double? width;
|
|
|
|
final double? height;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-12-21 16:17:53 +00:00
|
|
|
return Container(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Center(
|
|
|
|
child: SizedBox(
|
|
|
|
width: width,
|
|
|
|
height: height,
|
|
|
|
child: Lottie.asset(
|
|
|
|
Assets.lottie.test2,
|
|
|
|
animate: true,
|
|
|
|
repeat: true,
|
|
|
|
),
|
|
|
|
),
|
2022-08-26 08:11:35 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|