diff --git a/assets/gif/stacy-plain.gif b/assets/gif/stacy-plain.gif new file mode 100644 index 000000000..8fde2db6f Binary files /dev/null and b/assets/gif/stacy-plain.gif differ diff --git a/lib/pages/loading_view.dart b/lib/pages/loading_view.dart index 6c4b611ee..2da507847 100644 --- a/lib/pages/loading_view.dart +++ b/lib/pages/loading_view.dart @@ -16,6 +16,12 @@ class LoadingView extends StatelessWidget { Widget build(BuildContext context) { final size = MediaQuery.of(context).size; final width = min(size.width, size.height) * 0.5; + + final isChan = Theme.of(context).extension()!.themeType == + ThemeType.chan || + Theme.of(context).extension()!.themeType == + ThemeType.darkChans; + return Background( child: Scaffold( backgroundColor: Theme.of(context).extension()!.background, @@ -35,11 +41,17 @@ class LoadingView extends StatelessWidget { ), child: SizedBox( width: width, - child: Lottie.asset( - Assets.lottie.test2, - animate: true, - repeat: true, - ), + child: isChan + ? Image( + image: AssetImage( + Assets.gif.stacyPlain, + ), + ) + : Lottie.asset( + Assets.lottie.test2, + animate: true, + repeat: true, + ), ), ), // child: Image( diff --git a/lib/utilities/assets.dart b/lib/utilities/assets.dart index 2b00e1564..c54e75baf 100644 --- a/lib/utilities/assets.dart +++ b/lib/utilities/assets.dart @@ -401,6 +401,8 @@ class _ANIMATIONS { class _GIF { const _GIF(); + String get stacyPlain => "assets/gif/stacy-plain.gif"; + String plain(Coin coin) { return "assets/gif/coins/${coin.mainNetVersion.name}/plain.gif"; } diff --git a/pubspec.yaml b/pubspec.yaml index f90204829..4d1213b83 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -364,6 +364,9 @@ flutter: # basic - assets/lottie/test2.json + # gifs + - assets/gif/ + # coin gifs - assets/gif/coins/bitcoin/ - assets/gif/coins/bitcoincash/