USideMenuTheme constructor

const USideMenuTheme({
  1. required Color backgroundColor,
  2. required Color selectedItemColor,
  3. required Color hoverColor,
  4. required Color indicatorColor,
  5. required Color selectedTextColor,
  6. required Color unselectedTextColor,
  7. required Color selectedIconColor,
  8. required Color unselectedIconColor,
  9. required Color scrimColor,
  10. required Color dividerColor,
  11. double expandedWidth = 280,
  12. double railWidth = 84,
  13. Gradient? backgroundGradient,
  14. TextStyle? itemTextStyle,
  15. TextStyle? headerTextStyle,
  16. double iconSize = 22,
  17. double itemHeight = 50,
  18. double itemSpacing = 4,
  19. EdgeInsets itemPadding = const EdgeInsets.symmetric(horizontal: 12),
  20. BorderRadius itemRadius = const BorderRadius.all(Radius.circular(14)),
  21. USideMenuIndicatorStyle indicatorStyle = USideMenuIndicatorStyle.bar,
  22. Duration animationDuration = const Duration(milliseconds: 600),
  23. Curve animationCurve = Curves.easeOutCubic,
  24. bool enableHoverElevation = true,
  25. 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,
});