adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
555 stars 46 forks source link

Shell's FlyoutIcon is not displayed, how to solve it? #159

Closed ym1100 closed 9 months ago

ym1100 commented 9 months ago

I created a navigation mode using Shell's FlyoutItem and set flyouticon, but the icon did not display. When I changed window size , the icon displayed,

I looked MauiReactor.WeatherTwentyOne samples , it was also the first time it didn't show icon

windows 11,.net7.0-windows10.0.19041.0

adospace commented 9 months ago

hum, it appears a standard MAUI issue, can you create a minimal project that reproduces the issue? The problem is visible only in Windows or also in Mac/Android/iOS?

ym1100 commented 9 months ago

the problem is visible in Windows, android displayed normally, mac/ios not test. then I use maui xmal layout, Shell's flyouticon can be displayed normally, 截图_20231004171646

adospace commented 9 months ago

Seems that I can't reproduce the issue.

I've created different sample projects published here: https://github.com/adospace/mauireactor-samples/tree/main/Controls/ShellTestPage and everything appears working on Windows.

Can you share a minimal reproduction project that shows the problem?

ym1100 commented 9 months ago

thanks, I'm using this example, https://github.com/adospace/mauireactor-samples/tree/main/Controls/ShellTestPage it's no problem.

us this ,have problem ,icon no display https://github.com/adospace/reactorui-maui/tree/main/samples/MauiReactor.WeatherTwentyOne 20231005140106

adospace commented 9 months ago

OK, it seems that the custom item template is not working as expected in standard Maui either.

I think I'll wait for the .NET 8 to see if there are any fixes on this thing, in the meanwhile I can suggest just avoiding using the custom item template:

image

image

ym1100 commented 9 months ago

Thank you, it no problem after annotation.