Skip to content

Commit c942f24

Browse files
authored
Merge pull request #67 from rasitayaz/dev
3.2.6
2 parents 583dd5f + 6f104d9 commit c942f24

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.2.6
2+
3+
* Added `childBounceFilterQuality` option to `PieTheme` to adjust the quality of the child bounce transformation.
4+
15
## 3.2.5
26

37
* Fixed child widget initializing twice when bouncing is enabled.

lib/src/bouncing_widget.dart

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class _BouncingWidgetState extends State<BouncingWidget> {
7575
return Transform(
7676
transform: transform,
7777
origin: Offset(lastSize.width / 2, lastSize.height / 2),
78+
filterQuality: widget.theme.childBounceFilterQuality,
7879
child: sizeWrapper,
7980
);
8081
},

lib/src/pie_theme.dart

+7
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class PieTheme {
6464
this.childBounceFactor = 0.95,
6565
this.childBounceCurve = Curves.easeOutCubic,
6666
this.childBounceReverseCurve = Curves.easeInCubic,
67+
this.childBounceFilterQuality,
6768
this.fadeDuration = const Duration(milliseconds: 250),
6869
this.hoverDuration = const Duration(milliseconds: 250),
6970
this.delayDuration = const Duration(milliseconds: 350),
@@ -178,6 +179,9 @@ class PieTheme {
178179
/// Reverse curve for the menu child bounce animation.
179180
final Curve? childBounceReverseCurve;
180181

182+
/// Filter quality of the menu child bounce animation.
183+
final FilterQuality? childBounceFilterQuality;
184+
181185
/// Duration of [PieMenu] fade animation.
182186
final Duration fadeDuration;
183187

@@ -256,6 +260,7 @@ class PieTheme {
256260
double? childBounceDistance,
257261
Curve? childBounceCurve,
258262
Curve? childBounceReverseCurve,
263+
FilterQuality? childBounceFilterQuality,
259264
Duration? fadeDuration,
260265
Duration? hoverDuration,
261266
Duration? delayDuration,
@@ -296,6 +301,8 @@ class PieTheme {
296301
childBounceCurve: childBounceCurve ?? this.childBounceCurve,
297302
childBounceReverseCurve:
298303
childBounceReverseCurve ?? this.childBounceReverseCurve,
304+
childBounceFilterQuality:
305+
childBounceFilterQuality ?? this.childBounceFilterQuality,
299306
fadeDuration: fadeDuration ?? this.fadeDuration,
300307
hoverDuration: hoverDuration ?? this.hoverDuration,
301308
delayDuration: delayDuration ?? this.delayDuration,

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pie_menu
22
description: A Flutter package providing a highly customizable circular/radial context menu
3-
version: 3.2.5
3+
version: 3.2.6
44
homepage: https://github.com/rasitayaz/flutter-pie-menu
55
repository: https://github.com/rasitayaz/flutter-pie-menu
66
issue_tracker: https://github.com/rasitayaz/flutter-pie-menu/issues

0 commit comments

Comments
 (0)