drawer_rail 0.2.1
drawer_rail: ^0.2.1 copied to clipboard
A collapsible, themeable side navigation drawer with a full-width panel and a narrow icon rail: search, sections, badges, expandable groups and flyouts.
Changelog #
0.2.1 #
- Fix visual bug where hover effect was applied as an overlay affecting foreground legibility. Hover now strictly alters the background color using InkWell, keeping text and icons at 100% opacity.
0.2.0 #
- Add
DrawerRailTheme.hoverEffect(DrawerHoverEffect.shadow/.highlight/.none) so the item hover feedback can be switched or turned off, plushoverHighlightColorfor the highlight variant. - Fix the murky/cloudy look of the hover shadow: in
shadowmode an opaque surface is now painted behind the card, so the shadow reads as a lift instead of a colored haze bleeding through transparent items.
0.1.0 #
Initial release.
DrawerRail: collapsible side navigation drawer with an expanded panel and a narrow icon rail.- Built-in diacritic-insensitive search, uppercase section headers, selected pill, text/count badges, inline-expandable groups and collapsed flyout menus.
DrawerRailController(ChangeNotifier) for collapse, selection and group state — no external state-management dependency.DrawerRailLabelsfor localizing the built-in chrome.- Customizable header and footer slots via builders.
- Fully customizable
DrawerRailTheme, falling back to the ambientColorScheme:- Sizing/spacing:
expandedWidth,railWidth,iconSize,railIconSize,railItemHeight,borderRadius,itemBorderRadius,contentPadding,itemPadding,groupChildIndent. - Text styles:
labelTextStyle,selectedLabelTextStyle,sectionTextStyle,badgeTextStyle, plussectionUppercase. - Chrome icons:
collapseIcon,expandIcon,searchIcon,clearSearchIcon,groupTrailingIcon. - Motion:
animationDuration,animationCurve,groupAnimationDuration,pressedScale. - Layout:
DrawerRailPosition(left/right).
- Sizing/spacing:
DrawerRail.searchDecorationto fully override the search field, andDrawerRail.showFooterDivider.