Skip to content

Commit 5a81dbc

Browse files
SaadArdatiBirjuVachhani
authored andcommitted
🔧 Update Pack V1 #20
1 parent 87391be commit 5a81dbc

12 files changed

+41
-24
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## 0.2.0
2+
- [BREAKING] Renamed `toggle` to `trigger` in .animate() to better reflect its purpose.
3+
- [BREAKING] Renamed `AnimatedEffect` to `EffectWidget` to better reflect its purpose.
4+
- [BREAKING] Renamed `EffectAnimationValue` to `EffectQuery` to better reflect its purpose.
5+
- [BREAKING] Replace `value` in `EffectQuery` with `linearValue` and `curvedValue` to allow more refined control over animations.
6+
- [BREAKING] Renamed `PostFrameWidget` to `PostFrame`.
7+
- Add new Rolling Text effect.
8+
- Add new shake effect.
9+
- Add new align effect.
10+
- Update all effect extension functions to add more functionality of the `from` state.
11+
- Add new extension functions that have default from states like slideIn/Out() and fadeIn/Out().
12+
- Add new `oneShot`, `animateAfter`, `resetAll` functions to allow for more control over animations.
13+
- Add new `repeat` parameter to animation functions to allow for repeating animations.
14+
- Add new `delay` parameter to animation functions to allow for delaying animations.
15+
- Add new `playIf` parameter to animation functions to allow for conditional animations.
16+
117
## 0.1.1
218

319
- Minor doc updates.

analysis_options.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ linter:
55
use_super_parameters: true
66
prefer_const_constructors: true
77
public_member_api_docs: true
8+
prefer_relative_imports: true

lib/src/animated_effect.dart

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:hyper_effects/hyper_effects.dart';
2+
import '../hyper_effects.dart';
33

44
/// A callback that returns whether an animation should be allowed
55
/// to follow through with its animation or be skipped completely,
@@ -64,13 +64,13 @@ extension AnimatedEffectExt on Widget {
6464

6565
/// Animate the effects applied to this widget after the last animation
6666
/// in the chain ends.
67-
Widget animateAfter({
68-
Duration duration = const Duration(milliseconds: 350),
69-
Curve curve = appleEaseInOut,
70-
int repeat = 0,
71-
bool reverse = false,
72-
Duration delay = Duration.zero,
73-
VoidCallback? onEnd,
67+
Widget animateAfter(
68+
{Duration duration = const Duration(milliseconds: 350),
69+
Curve curve = appleEaseInOut,
70+
int repeat = 0,
71+
bool reverse = false,
72+
Duration delay = Duration.zero,
73+
VoidCallback? onEnd,
7474
BooleanCallback? playIf}) {
7575
return AnimatedEffect(
7676
triggerType: AnimationTriggerType.afterLast,
@@ -100,13 +100,13 @@ extension AnimatedEffectExt on Widget {
100100
///
101101
/// The [repeat] parameter is used to determine how the animation should be
102102
/// repeated.
103-
AnimatedEffect oneShot({
104-
Duration duration = const Duration(milliseconds: 350),
105-
Curve curve = appleEaseInOut,
106-
int repeat = 0,
107-
bool reverse = false,
108-
Duration delay = Duration.zero,
109-
VoidCallback? onEnd,
103+
AnimatedEffect oneShot(
104+
{Duration duration = const Duration(milliseconds: 350),
105+
Curve curve = appleEaseInOut,
106+
int repeat = 0,
107+
bool reverse = false,
108+
Duration delay = Duration.zero,
109+
VoidCallback? onEnd,
110110
BooleanCallback? playIf}) {
111111
return AnimatedEffect(
112112
triggerType: AnimationTriggerType.oneShot,

lib/src/effect_animation_value.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:hyper_effects/src/pointer_transition.dart';
2+
import 'pointer_transition.dart';
33

44
/// An inherited widget that provides the animation value to it's descendants.
55
///

lib/src/effects/clip_effect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:hyper_effects/hyper_effects.dart';
2+
import '../../hyper_effects.dart';
33

44
/// Provides a extension method to apply an [ClipEffect] to a [Widget].
55
extension ClipEffectExtension on Widget {

lib/src/effects/color_filter_effect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:ui';
22

33
import 'package:flutter/material.dart';
4-
import 'package:hyper_effects/hyper_effects.dart';
4+
import '../../hyper_effects.dart';
55

66
/// Provides a extension method to apply an [ColorFilterEffect] to a [Widget].
77
extension ColorFilterEffectExtension on Widget {

lib/src/effects/opacity_effect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:ui';
22

33
import 'package:flutter/widgets.dart';
4-
import 'package:hyper_effects/hyper_effects.dart';
4+
import '../../hyper_effects.dart';
55

66
/// Provides a extension method to apply an [OpacityEffect] to a [Widget].
77
extension OpacityEffectExtension on Widget {

lib/src/effects/shake_effect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:math';
22
import 'dart:ui';
33

44
import 'package:flutter/material.dart';
5-
import 'package:hyper_effects/hyper_effects.dart';
5+
import '../../hyper_effects.dart';
66

77
/// Provides a extension method to apply a [ShakeEffect] to a [Widget].
88
extension ShakeEffectExt on Widget {

lib/src/effects/text/rolling_text_effect.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:math';
22
import 'dart:ui' as ui;
33

44
import 'package:flutter/material.dart';
5-
import 'package:hyper_effects/hyper_effects.dart';
5+
import '../../../hyper_effects.dart';
66

77
import 'rolling_text_controller.dart';
88

lib/src/effects/text/tape_slide_direction.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'package:hyper_effects/hyper_effects.dart';
1+
import '../../../hyper_effects.dart';
22

33
/// Determines the direction in which each tape of characters will
44
/// slide in the [RollingTextEffect].

lib/src/pointer_transition.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import 'package:flutter/widgets.dart';
2-
import 'package:hyper_effects/src/post_frame_widget.dart';
2+
import 'post_frame_widget.dart';
33

44
import 'apple_curves.dart';
55
import 'effect_animation_value.dart';

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: hyper_effects
22
description: Create beautiful effects and animations with just a few lines of code.
33

4-
version: 0.1.1
4+
version: 0.2.0
55

66
homepage: https://hyperdesigned.dev/
77
repository: https://github.com/hyper-designed/hyper_effects

0 commit comments

Comments
 (0)