Removed spring package and use flutter_animate for animation
This commit is contained in:
parent
5e94d722df
commit
451507f4b6
3 changed files with 18 additions and 51 deletions
|
@ -1,4 +1,5 @@
|
|||
import "package:flutter/material.dart";
|
||||
import "package:flutter_animate/flutter_animate.dart";
|
||||
import "package:photos/models/api/storage_bonus/storage_bonus.dart";
|
||||
import "package:photos/models/user_details.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
|
@ -11,7 +12,6 @@ import "package:photos/ui/growth/referral_code_widget.dart";
|
|||
import "package:photos/ui/growth/storage_details_screen.dart";
|
||||
import "package:photos/utils/navigation_util.dart";
|
||||
import "package:photos/utils/share_util.dart";
|
||||
import "package:spring/spring.dart";
|
||||
|
||||
class CodeSuccessScreen extends StatelessWidget {
|
||||
final ReferralView referralView;
|
||||
|
@ -54,15 +54,23 @@ class CodeSuccessScreen extends StatelessWidget {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Spring.scale(
|
||||
start: 0.2,
|
||||
end: 1.0,
|
||||
child: Icon(
|
||||
Icons.check,
|
||||
color: colorScheme.primary500,
|
||||
size: 96,
|
||||
),
|
||||
),
|
||||
Icon(
|
||||
Icons.check,
|
||||
color: colorScheme.primary500,
|
||||
size: 96,
|
||||
)
|
||||
.animate()
|
||||
.scaleXY(
|
||||
begin: 0.5,
|
||||
end: 1,
|
||||
duration: 750.ms,
|
||||
curve: Curves.easeInOutCubic,
|
||||
delay: 250.ms,
|
||||
)
|
||||
.fadeIn(
|
||||
duration: 500.ms,
|
||||
curve: Curves.easeInOutCubic,
|
||||
),
|
||||
Text(
|
||||
"${referralView.planInfo.storageInGB} GB",
|
||||
style: textStyle.h2Bold,
|
||||
|
|
40
pubspec.lock
40
pubspec.lock
|
@ -1453,14 +1453,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
simple_animations:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: simple_animations
|
||||
sha256: "48e065ed7264fa6b3e82450544ecde8ae84ff2aaa00fb39e8a90fc05d608084f"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.1.1"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
|
@ -1490,14 +1482,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.9.1"
|
||||
spring:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: spring
|
||||
sha256: "25a433dd5dc47e58cd9bd524a536dd164f9b0d7622a80fcda7622a2bbefddedc"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.2"
|
||||
sprintf:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -1570,22 +1554,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
supercharged:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: supercharged
|
||||
sha256: ab49c848b33e28243f5ce82b976736de17d0852b71d0dfbde53fbb5e2ecca7cb
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
supercharged_dart:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: supercharged_dart
|
||||
sha256: cb95edda32eacd27664089700a750120be41daa84aa6cd2aeded46227c16b867
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
syncfusion_flutter_core:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -1715,14 +1683,6 @@ packages:
|
|||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.4"
|
||||
universal_platform:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: universal_platform
|
||||
sha256: d315be0f6641898b280ffa34e2ddb14f3d12b1a37882557869646e0cc363d0cc
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.0+1"
|
||||
url_launcher:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
|
|
@ -102,7 +102,6 @@ dependencies:
|
|||
sentry_flutter: ^6.12.1
|
||||
share_plus: ^4.0.10
|
||||
shared_preferences: ^2.0.5
|
||||
spring: ^2.0.2
|
||||
sqflite: ^2.0.0+3
|
||||
sqflite_migration: ^0.3.0
|
||||
step_progress_indicator: ^1.0.2
|
||||
|
|
Loading…
Add table
Reference in a new issue