Skip to content

Commit

Permalink
Fixed an issue for version 2.2.31
Browse files Browse the repository at this point in the history
  • Loading branch information
MTtankkeo committed Nov 14, 2024
1 parent 856d3dd commit add34c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
## 2.2.2
* Fixed an issue about [issues/1](https://github.com/MTtankkeo/flutter_touch_ripple/issues/1) for the null-safety exception about RenderBox reference.

## 2.2.3
## 2.2.3 ~ 2.2.31
* Fixed an issue related to [issues/1](https://github.com/MTtankkeo/flutter_touch_ripple/issues/1) for the 'Null check operator used on a null value' exception by adopting a verification approach to ensure necessary instances are initialized.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<thead>
<tr>
<th>Version</th>
<th>v2.2.3</th>
<th>v2.2.31</th>
</tr>
</tbody>
</table>
Expand Down
4 changes: 2 additions & 2 deletions lib/components/touch_ripple_effect.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class TouchRippleSpreadingEffect extends TouchRippleEffect {

/// Returns animation progress value of spread animation.
double get spreadPercent {
if (isInitialized) return 0;
if (!isInitialized) return 0;
final lowerPercent = behavior.lowerPercent ?? 0;
final upperPercent = behavior.upperPercent ?? 1;

Expand All @@ -112,7 +112,7 @@ class TouchRippleSpreadingEffect extends TouchRippleEffect {

/// Returns animation progress value of fade animation.
double get fadePercent {
if (isInitialized) return 0;
if (!isInitialized) return 0;
final lowerPercent = behavior.fadeLowerPercent ?? 0;
final upperPercent = behavior.fadeUpperPercent ?? 1;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_touch_ripple
description: >
This flutter package is customizable touch ripple effect widget for flutter,
very flexible and performant, providing smooth touch effect animations.
version: 2.2.3
version: 2.2.31
publisher: ttankkeo112@gmail.com
repository: https://github.com/MTtankkeo/flutter_touch_ripple

Expand Down

0 comments on commit add34c8

Please sign in to comment.