mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CAKE-359 | applied animation to yat_alert.dart
This commit is contained in:
Executable
+1
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
Executable
+1
File diff suppressed because one or more lines are too long
@@ -8,6 +8,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/palette.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:lottie/lottie.dart';
|
||||
|
||||
class YatAlert extends StatelessWidget {
|
||||
YatAlert({@required this.wallet, this.isYatDevMode = false})
|
||||
@@ -25,6 +26,7 @@ class YatAlert extends StatelessWidget {
|
||||
static const _createSuffix = '/create';
|
||||
static const _queryParameter = '?addresses=';
|
||||
final image = Image.asset('assets/images/yat_crypto.png');
|
||||
final anim = Lottie.asset('assets/animation/anim1.json');
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -40,14 +42,15 @@ class YatAlert extends StatelessWidget {
|
||||
content: Column(
|
||||
children: [
|
||||
Container(
|
||||
height: 90,
|
||||
height: 45, // 90
|
||||
padding: EdgeInsets.only(left: 24, right: 24),
|
||||
child: YatBar(onClose: () => Navigator.of(context).pop())
|
||||
),
|
||||
AspectRatio(
|
||||
aspectRatio: aspectRatioImage,
|
||||
child: FittedBox(child: image, fit: BoxFit.fill)
|
||||
),
|
||||
anim,
|
||||
// AspectRatio(
|
||||
// aspectRatio: aspectRatioImage,
|
||||
// child: FittedBox(child: image, fit: BoxFit.fill)
|
||||
// ),
|
||||
Container(
|
||||
padding: EdgeInsets.only(left: 30, right: 30),
|
||||
child: Column(
|
||||
|
||||
@@ -573,6 +573,13 @@ packages:
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.11.4"
|
||||
lottie:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: lottie
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.7.0+1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@@ -58,6 +58,7 @@ dependencies:
|
||||
webview_flutter: ^2.0.2
|
||||
flutter_spinkit: ^5.0.0
|
||||
uni_links: ^0.4.0
|
||||
lottie: ^0.7.0
|
||||
|
||||
# The following adds the Cupertino Icons font to your application.
|
||||
# Use with the CupertinoIcons class for iOS style icons.
|
||||
@@ -113,6 +114,7 @@ flutter:
|
||||
- assets/litecoin_electrum_server_list.yml
|
||||
- assets/text/
|
||||
- assets/faq/
|
||||
- assets/animation/
|
||||
|
||||
fonts:
|
||||
- family: Lato
|
||||
|
||||
Reference in New Issue
Block a user