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

🐛 NavigationAppBar: actions isn't a list of widgets #177

Closed
Adria75 opened this issue Feb 12, 2022 · 6 comments
Closed

🐛 NavigationAppBar: actions isn't a list of widgets #177

Adria75 opened this issue Feb 12, 2022 · 6 comments

Comments

@Adria75
Copy link

Adria75 commented Feb 12, 2022

Describe the bug
I've tried to use the actions parametter of the NavigationAppBar as the widget documentation says but is not accepting a list of Widgets. I've seen that it's type is Widget? instead of List<Widget>?

To Reproduce
Try to use the actions parametter as a list of widgets

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 12, 2022

Use a Row

@Adria75
Copy link
Author

Adria75 commented Feb 12, 2022

Tried already. Using a Row or some Widgets that accept a list of children like Wrap or Padding the Buttons or IconButtons are not working as espected. The Hover and the Click events are not triggering like using only a Button as a Widget of the actions parametter.

And as I've seen, the type of Material's AppBar actions parametter is List<Widget>, so I expected the same implementation for Fluent_ui.

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 12, 2022

Can you share a reproducible example?

@Adria75
Copy link
Author

Adria75 commented Feb 12, 2022

Tried some things and the problem is not the Row.

In the image you can see a NavigationAppBar with a Padding and a Row as a child. The buttons inside the Row without being wrapped into a Padding are working fine. When you wrap the Row inside a Container or Padding, the buttons are performing some issues with the events.

It seems like the text of the button and the Icon are not doing the hover and click events.

image

@bdlukaa
Copy link
Owner

bdlukaa commented Feb 14, 2022

Is this solved?

@Adria75
Copy link
Author

Adria75 commented Feb 15, 2022

Nope, still happening.

Only with a Row():
Animation

With a Padding() wrapping the Row():

Animation2

As you can see, the hover event area has changed. I don't know how to align the buttons at the center without changing the hover/click area.

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

No branches or pull requests

2 participants