r/FlutterDev • u/1ce-Scream • 17h ago
Plugin I shipped smart_context_menu 1.1.0 with actions row, right-click, and hover.
Hi, [r/FlutterDev](r/FlutterDev)! š
Back in October, I shared my first Flutter package here, smart_context_menu: a configurable context menu styled like iOS menus. Items can have live updates, and submenus can be loaded on demand or fetch longer lists a page at a time.
A commenter asked for right-click support on desktop, and I'm glad to say that's now in 1.1.0 version. Thanks for the feedback! On desktop and web, you can now open the menu with a right-click or a two-finger click on a trackpad. Menu items highlight on hover, too.
I also added action rows. They let you group common actions like Copy, Share, and Rename (say, in a file menu) together. The rest of the actions can go in a regular list, or you can use an action row as the entire menu. For example, the drawing toolbar in the image has an action row with a Shapes button which opens a submenu to select a shape.
I wanted rows to be as flexible as the rest of the menu. They can be added anywhere, and can show icons with or without labels, use custom styling, or even render a cell with a custom widget. Items in a row can open paginated submenus and update while the menu is open.
Try the live demoĀ Ā Ā·Ā 90-second video overview
I have a couple of questions for you.
1. cupertino_uiĀ - Has anyone here started usingĀ cupertino_uiĀ in their apps? Do you think itās worth moving Smart Context Menu to it now, or would you wait?
2. Liquid GlassĀ - Are you already using Liquid Glass in your Flutter app, or planning to adopt it? How important is it to you that context menus use Liquid Glass too?
Happy Thanksgiving to everyone celebrating! š¦