Skip to content

Commit ea6b415

Browse files
committed
🔧 Update Pack 2 #21
1 parent 24055a2 commit ea6b415

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313
adaptive_theme: ^3.6.0
14-
flutter_box_transform: ^0.4.2
14+
flutter_box_transform: ^0.4.3
1515
hyper_effects:
1616
path: ../
1717
google_fonts: ^6.2.1
@@ -22,7 +22,7 @@ dev_dependencies:
2222
flutter_test:
2323
sdk: flutter
2424
web: ^0.5.1
25-
flutter_lints: ^3.0.2
25+
flutter_lints: ^4.0.0
2626

2727
flutter:
2828
uses-material-design: true

lib/src/animated_effect.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ class ResetAllAnimationsEffectState extends State<ResetAllAnimationsEffect> {
588588
/// the children tree and resetting all animations.
589589
void reset() {
590590
final state = findLeafAnimatedEffectState(context);
591+
592+
// Once resetting is complete, re-trigger oneShot animations.
591593
if (state?.widget.triggerType == AnimationTriggerType.oneShot) {
592594
state?.drive();
593595
}

lib/src/animated_group_effect.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:math';
22

33
import 'package:collection/collection.dart';
44
import 'package:flutter/widgets.dart';
5+
import 'package:meta/meta.dart';
56

67
import '../hyper_effects.dart';
78

@@ -81,6 +82,7 @@ Widget _defaultSwappedChildBuilder(
8182

8283
/// A widget that animates the addition, removal, or swapping of a group of
8384
/// widgets automatically.
85+
@experimental
8486
class AnimatedGroup extends StatefulWidget {
8587
/// The list of children to animate.
8688
final List<Widget> children;
@@ -172,6 +174,7 @@ class _AnimatedGroupState extends State<AnimatedGroup> {
172174

173175
/// A widget that animates the addition, removal, or swapping of a single child
174176
/// widget automatically.
177+
@experimental
175178
class AnimatedChild extends StatefulWidget {
176179
/// The child widget to animate.
177180
final Widget? child;

lib/src/animation_retainer.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/widgets.dart';
2+
import 'package:meta/meta.dart';
23

34
import '../hyper_effects.dart';
45

@@ -24,6 +25,7 @@ import '../hyper_effects.dart';
2425
/// },
2526
/// ),
2627
/// ```
28+
@experimental
2729
class AnimatedEffectStateRetainer extends StatefulWidget {
2830
/// A subtree of widgets that contain [AnimatedEffect] widgets.
2931
final Widget child;
@@ -83,6 +85,7 @@ typedef DidPlayCallback = bool Function(Key key);
8385

8486
/// An [InheritedWidget] that delegates callbacks to the
8587
/// [AnimatedEffectStateRetainer] parent widget.
88+
@experimental
8689
class AnimatedEffectStateRetainerInheritedWidget extends InheritedWidget {
8790
/// A callback that marks an [AnimatedEffect] widget with the given [Key]
8891
/// as played.

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ dependencies:
1919
flutter:
2020
sdk: flutter
2121
equatable: ^2.0.5
22-
collection: ^1.18.0
22+
collection: ">=1.15.0 <2.0.0"
23+
meta: ">=1.11.0 <2.0.0"
2324

2425
dev_dependencies:
2526
flutter_test:

0 commit comments

Comments
 (0)