SideMenuStyle constructor
SideMenuStyle({
- double? openSideMenuWidth = 300,
- double? compactSideMenuWidth = 70,
- bool showHamburger = false,
- Color? backgroundColor,
- Color? selectedColor,
- Color? hoverColor = Colors.transparent,
- Color? selectedHoverColor,
- SideMenuDisplayMode? displayMode = SideMenuDisplayMode.auto,
- TextStyle? selectedTitleTextStyle,
- TextStyle? unselectedTitleTextStyle,
- Color? selectedIconColor = Colors.black,
- Color? unselectedIconColor = Colors.black54,
- double? iconSize = 24,
- TextStyle? selectedTitleTextStyleExpandable,
- TextStyle? unselectedTitleTextStyleExpandable,
- Color? selectedIconColorExpandable = Colors.black,
- Color? unselectedIconColorExpandable = Colors.black54,
- double? iconSizeExpandable = 24,
- Color? arrowOpen = Colors.black,
- Color? arrowCollapse = Colors.black54,
- BoxDecoration? decoration,
- Color? toggleColor = Colors.black54,
- EdgeInsetsGeometry itemOuterPadding = const EdgeInsets.symmetric(horizontal: 5.0),
- double itemInnerSpacing = 8.0,
- double itemHeight = 50.0,
- BorderRadius itemBorderRadius = const BorderRadius.all(Radius.circular(5.0)),
- bool showTooltip = true,
Style class to configure SideMenu
Implementation
SideMenuStyle({
this.openSideMenuWidth = 300,
this.compactSideMenuWidth = 70,
this.showHamburger = false,
this.backgroundColor,
this.selectedColor,
this.hoverColor = Colors.transparent,
this.selectedHoverColor,
this.displayMode = SideMenuDisplayMode.auto,
this.selectedTitleTextStyle,
this.unselectedTitleTextStyle,
this.selectedIconColor = Colors.black,
this.unselectedIconColor = Colors.black54,
this.iconSize = 24,
this.selectedTitleTextStyleExpandable,
this.unselectedTitleTextStyleExpandable,
this.selectedIconColorExpandable = Colors.black,
this.unselectedIconColorExpandable = Colors.black54,
this.iconSizeExpandable = 24,
this.arrowOpen = Colors.black,
this.arrowCollapse = Colors.black54,
this.decoration,
this.toggleColor = Colors.black54,
this.itemOuterPadding = const EdgeInsets.symmetric(horizontal: 5.0),
this.itemInnerSpacing = 8.0,
this.itemHeight = 50.0,
this.itemBorderRadius = const BorderRadius.all(
Radius.circular(5.0),
),
this.showTooltip = true,
});