USideMenuTheme constructor
const
USideMenuTheme({
- required Color backgroundColor,
- required Color selectedItemColor,
- required Color hoverColor,
- required Color indicatorColor,
- required Color selectedTextColor,
- required Color unselectedTextColor,
- required Color selectedIconColor,
- required Color unselectedIconColor,
- required Color scrimColor,
- required Color dividerColor,
- double expandedWidth = 280,
- double railWidth = 84,
- Gradient? backgroundGradient,
- TextStyle? itemTextStyle,
- TextStyle? headerTextStyle,
- double iconSize = 22,
- double itemHeight = 50,
- double itemSpacing = 4,
- EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 12),
- BorderRadius itemRadius = const BorderRadius.all(Radius.circular(14)),
- USideMenuIndicatorStyle indicatorStyle = USideMenuIndicatorStyle.bar,
- Duration animationDuration = const Duration(milliseconds: 600),
- Curve animationCurve = Curves.easeOutCubic,
- bool enableHoverElevation = true,
- List<
BoxShadow> ? shadow,
Implementation
const USideMenuTheme({
required this.backgroundColor,
required this.selectedItemColor,
required this.hoverColor,
required this.indicatorColor,
required this.selectedTextColor,
required this.unselectedTextColor,
required this.selectedIconColor,
required this.unselectedIconColor,
required this.scrimColor,
required this.dividerColor,
this.expandedWidth = 280,
this.railWidth = 84,
this.backgroundGradient,
this.itemTextStyle,
this.headerTextStyle,
this.iconSize = 22,
this.itemHeight = 50,
this.itemSpacing = 4,
this.itemPadding = const EdgeInsets.symmetric(horizontal: 12),
this.itemRadius = const BorderRadius.all(Radius.circular(14)),
this.indicatorStyle = USideMenuIndicatorStyle.bar,
this.animationDuration = const Duration(milliseconds: 600),
this.animationCurve = Curves.easeOutCubic,
this.enableHoverElevation = true,
this.shadow,
});