stack_wallet/lib/pages/loading_view.dart

39 lines
1 KiB
Dart
Raw Normal View History

2022-08-26 08:11:35 +00:00
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'package:stackwallet/utilities/assets.dart';
2022-09-21 00:46:07 +00:00
import 'package:stackwallet/utilities/theme/stack_theme.dart';
2022-08-26 08:11:35 +00:00
class LoadingView extends StatelessWidget {
const LoadingView({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
return Scaffold(
2022-09-21 00:46:07 +00:00
backgroundColor: StackTheme.instance.color.background,
2022-08-26 08:11:35 +00:00
body: Container(
2022-09-21 00:46:07 +00:00
color: StackTheme.instance.color.background,
2022-08-26 08:11:35 +00:00
child: Center(
child: SizedBox(
width: min(size.width, size.height) * 0.5,
child: Lottie.asset(
Assets.lottie.test2,
animate: true,
repeat: true,
),
),
// child: Image(
// image: AssetImage(
// Assets.png.splash,
// ),
// width: MediaQuery.of(context).size.width * 0.5,
// ),
),
),
);
}
}