chans loading indicator

This commit is contained in:
julian 2023-04-12 08:41:35 -06:00
parent 20f6754de5
commit fbe4767e5c

View file

@ -1,6 +1,8 @@
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
class LoadingIndicator extends StatelessWidget {
const LoadingIndicator({
@ -14,13 +16,24 @@ class LoadingIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
final isChan = Theme.of(context).extension<StackColors>()!.themeType ==
ThemeType.chan ||
Theme.of(context).extension<StackColors>()!.themeType ==
ThemeType.darkChans;
return Container(
color: Colors.transparent,
child: Center(
child: SizedBox(
width: width,
height: height,
child: Lottie.asset(
child: isChan
? Image(
image: AssetImage(
Assets.gif.stacyPlain,
),
)
: Lottie.asset(
Assets.lottie.test2,
animate: true,
repeat: true,