Material Design 3 Flutter Contextual Menu
6 min readJan 1, 2022
--
This is how to implement a nice declarative Material Design 3 Flutter contextual menu for your app. The code for this in the fp contextual menu sub-folder of this repo:
Let’s get started!
What Am I Using And What Am I Building
This is what I am using:
And the contextual menu in a declarative way is by using this package
And the final result appears like this:
Now, let’s get on to an implementation.
Implementing Contextual Menu
To implement anything using the declarative Flutter Portal, we need to put on Portal container at the root, like this: