Skip to content

Commit

Permalink
Merge pull request #59 from rasitayaz/dev
Browse files Browse the repository at this point in the history
update to 3.2.1
  • Loading branch information
rasitayaz authored Jun 24, 2024
2 parents ee3152f + 24c77c0 commit 0b11d98
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ example/windows/
example/linux/
example/macos/
example/web/
example/.metadata
example/.metadata
example/assets/
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.2.1

* Fixed some stateful widgets are trying to set their state after being disposed.

## 3.2.0

* Added `menuAlignment` and `menuDisplacement` to `PieTheme` to allow custom positioning of the menu. [#50](https://github.com/rasitayaz/flutter-pie-menu/issues/50)
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ dependencies:
pie_menu:
path: ../

url_launcher: ^6.2.6
url_launcher: ^6.3.0
font_awesome_flutter: ^10.7.0

dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^3.0.2
flutter_lints: ^4.0.0

flutter:
uses-material-design: true
Expand Down
6 changes: 6 additions & 0 deletions lib/src/bouncing_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class BouncingWidget extends StatefulWidget {
class _BouncingWidgetState extends State<BouncingWidget> {
var lastSize = Size.zero;

@override
void setState(VoidCallback fn) {
if (!mounted) return;
super.setState(fn);
}

@override
Widget build(BuildContext context) {
return AnimatedBuilder(
Expand Down
6 changes: 6 additions & 0 deletions lib/src/pie_menu_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ class _PieMenuCoreState extends State<PieMenuCore>
widget.controller?.addListener(_handleControllerEvent);
}

@override
void setState(VoidCallback fn) {
if (!mounted) return;
super.setState(fn);
}

@override
void dispose() {
_overlayFadeController.dispose();
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pie_menu
description: A Flutter package providing a highly customizable circular/radial context menu
version: 3.2.0
version: 3.2.1
homepage: https://github.com/rasitayaz/flutter-pie-menu
repository: https://github.com/rasitayaz/flutter-pie-menu
issue_tracker: https://github.com/rasitayaz/flutter-pie-menu/issues
Expand All @@ -22,7 +22,7 @@ dependencies:
vector_math: ^2.1.4

dev_dependencies:
flutter_lints: ^3.0.2
flutter_lints: ^4.0.0
flutter_test:
sdk: flutter

Expand Down

0 comments on commit 0b11d98

Please sign in to comment.