From 4694b401c20b2b56a92a143422dbe9289da532f5 Mon Sep 17 00:00:00 2001 From: Mati Date: Wed, 6 Dec 2023 17:43:50 -0300 Subject: [PATCH 1/4] feat(submenu): makes it have a callback for open and close events PE-4982 --- lib/src/components/submenu.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/src/components/submenu.dart b/lib/src/components/submenu.dart index 70a88d7..e041568 100644 --- a/lib/src/components/submenu.dart +++ b/lib/src/components/submenu.dart @@ -22,11 +22,15 @@ class ArDriveSubmenu extends StatefulWidget { required this.child, required this.menuChildren, this.alignmentOffset = Offset.zero, + this.onOpen, + this.onClose, }); final Widget child; final List menuChildren; final Offset alignmentOffset; + final Function? onOpen; + final Function? onClose; @override State createState() => _ArDriveSubmenuState(); @@ -35,19 +39,16 @@ class ArDriveSubmenu extends StatefulWidget { class _ArDriveSubmenuState extends State { final topMenuController = MenuController(); - @override - void initState() { - super.initState(); - } - @override Widget build(BuildContext context) { return ArDriveMenuWidget( onClick: () { if (topMenuController.isOpen) { topMenuController.close(); + widget.onClose?.call(); } else { topMenuController.open(); + widget.onOpen?.call(); } }, menuController: topMenuController, From 1a09c9de855b312ee9ea8db12fa0ac9d0da99515 Mon Sep 17 00:00:00 2001 From: Mati Date: Wed, 6 Dec 2023 17:50:11 -0300 Subject: [PATCH 2/4] feat: minor fix --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 75d20bf..ec620ba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: ardrive_io: git: url: https://github.com/ardriveapp/ardrive_io.git - ref: v1.4.3 + ref: v1.4.2 auto_size_text: ^3.0.0 desktop_drop: ^0.4.0 dotted_border: ^2.0.0+3 From 5f206709ab447c21bcd97c8e1a02b991b5a94ea6 Mon Sep 17 00:00:00 2001 From: Mati Date: Wed, 6 Dec 2023 17:56:52 -0300 Subject: [PATCH 3/4] Revert "feat: minor fix" This reverts commit 1a09c9de855b312ee9ea8db12fa0ac9d0da99515. --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index ec620ba..75d20bf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,7 +13,7 @@ dependencies: ardrive_io: git: url: https://github.com/ardriveapp/ardrive_io.git - ref: v1.4.2 + ref: v1.4.3 auto_size_text: ^3.0.0 desktop_drop: ^0.4.0 dotted_border: ^2.0.0+3 From be956587c9c944a06258ca53196a5075f2452c4f Mon Sep 17 00:00:00 2001 From: Thiago Carvalho Date: Thu, 4 Jan 2024 12:25:46 -0300 Subject: [PATCH 4/4] bump version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index cc1e9f3..ffa931c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: ardrive_ui description: UI Design Library for the ArDrive Design System -version: 1.17.0 +version: 1.17.1 publish_to: "none"