bdlukaa / fluent_ui

Implements Microsoft's WinUI3 in Flutter.

Home Page:https://bdlukaa.github.io/fluent_ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is posible to change paneitem when selected? or hover

bagusandrewijaya opened this issue · comments

i want change color when paneitem is selected on navigationpane maybe red or yellow etc
from this default fluent ui
image
to this what i want
image
can anyone help me?

image
SOLVED!

if someone have same problem like me you just need go to
lib\src\controls\navigation\navigation_view\pane_items.dart

and find bellow code
image
step 1
find boxconstraints
step 2 wrap the widget use container and
step 3 just add color and use iteration
selected == true ? Colora : colorb

You can create your own pane item by extending a PaneItem - just like you'd do with a normal widget. See this for reference