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

Transparent toggledChild, vertical offset for the menu, border in opened state #19

Open
plavunov opened this issue Mar 11, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@plavunov
Copy link

Hi! This is what I am trying to achieve:
desired

I was able to make the title child look the way I need:
current-closed

But then, I ran into trouble. I was trying to make the toggledChild transparent by all possible means, but it either keeps instantiating it as a white box, or just removes it (which shifts the menu in an undesired way).
current-opened

Also, it would be especially useful if there was a way to provide a vertical offset for the menu, in order to achieve the desired menu look (because the initial title child needs to stay in place)

Finally, do you think it's possible to provide a border that would only be visible when the menu is opened?

Thanks!

@plavunov plavunov added the enhancement New feature or request label Mar 11, 2021
@huextrat
Copy link
Owner

huextrat commented Mar 23, 2021

Hi,

By using the following properties you should have a transparent background for the whole menu button.

itemBackgroundColor: Colors.transparent,
menuButtonBackgroundColor: Colors.transparent,

Now about the border you should have a way with decoration property with a custom border ;)

For instance:

decoration: BoxDecoration(
    border: Border.all(
    color: Colors.black,
        width: 1,
    ),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants