mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
29 lines
565 B
Dart
29 lines
565 B
Dart
|
import 'package:flutter/cupertino.dart';
|
||
|
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) {
|
||
|
return SizedBox(
|
||
|
width: width,
|
||
|
height: height,
|
||
|
child: Lottie.asset(
|
||
|
Assets.lottie.test2,
|
||
|
animate: true,
|
||
|
repeat: true,
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|