mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-15 10:15:58 -07:00
Improvements to side navigation bar
Use custom tooltip instead of auto expanding sidebar
This commit is contained in:
parent
fd3c97a214
commit
82e09b3e0c
7 changed files with 210 additions and 68 deletions
|
|
@ -81,13 +81,14 @@ class DestinationModel {
|
|||
);
|
||||
}
|
||||
|
||||
NavigationButton toNavigationButton(bool selected, bool horizontal, bool expanded) {
|
||||
NavigationButton toNavigationButton(bool selected, bool horizontal, bool expanded, {Widget? customIcon}) {
|
||||
return NavigationButton(
|
||||
label: label,
|
||||
selected: selected,
|
||||
onPressed: action,
|
||||
horizontal: horizontal,
|
||||
expanded: expanded,
|
||||
customIcon: customIcon,
|
||||
selectedIcon: selectedIcon!,
|
||||
icon: icon!,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue