Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17.1 #87

Merged
merged 6 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lib/src/components/submenu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArDriveSubmenuItem> menuChildren;
final Offset alignmentOffset;
final Function? onOpen;
final Function? onClose;

@override
State<ArDriveSubmenu> createState() => _ArDriveSubmenuState();
Expand All @@ -35,19 +39,16 @@ class ArDriveSubmenu extends StatefulWidget {
class _ArDriveSubmenuState extends State<ArDriveSubmenu> {
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,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down