rasitayaz / flutter-pie-menu

A Flutter package providing a highly customizable circular/radial context menu
https://rasitayaz.github.io/flutter-pie-menu/
MIT License
33 stars 18 forks source link

Is it possible to open menu through code? #48

Closed realchrisparker closed 6 months ago

realchrisparker commented 10 months ago

Is it possible to open menu through code? I ask because I am working with DataTable2 and the generate code doesn't allow me to wrap a DataRow with a PieMenu.

rasitayaz commented 10 months ago

Currently not possible, but I'll leave this issue open for anyone interested to implement this feature. I think a controller-based approach would work.

erecord commented 7 months ago

Hey @rasitayaz, firstly thanks for this awesome package. It's a huge time saver and it works great.

I've created a PR to implement a simple controller-based approach. When you have some time, would you mind taking a look? Let me know if you'd prefer any changes or don't agree with the approach - I'm happy to discuss it.

In a future PR, I'd like to update the ChangeNotifier to a ValueNotifier<Alignment> so that a developer can specify where they'd like the tap be, instead always tapping the mid point.

Let me know what you think.

realchrisparker commented 6 months ago

Thank you team!