SSideBar constructor

const SSideBar({
  1. Key? key,
  2. Color sideBarColor = const Color(0xff1D1D1D),
  3. Color selectedIconBackgroundColor = const Color(0xff323232),
  4. Color unSelectedTextColor = const Color(0xffA0A5A9),
  5. Color selectedTextColor = Colors.white,
  6. Color selectedIconColor = Colors.white,
  7. Color unselectedIconColor = const Color(0xffA0A5A9),
  8. Color hoverColor = Colors.black38,
  9. Color splashColor = Colors.black87,
  10. Color highlightColor = Colors.black,
  11. Color? minimizeButtonColor,
  12. double borderRadius = 20,
  13. double sideBarWidth = 240,
  14. double? sideBarHeight,
  15. double sideBarSmallWidth = 84,
  16. bool settingsDivider = true,
  17. bool isMinimized = false,
  18. bool compactMode = false,
  19. bool showTooltipsWhenMinimized = true,
  20. Curve curve = Curves.easeOutExpo,
  21. Duration sideBarAnimationDuration = const Duration(milliseconds: 700),
  22. Duration floatingAnimationDuration = const Duration(milliseconds: 300),
  23. Color dividerColor = const Color(0xff929292),
  24. TextStyle textStyle = const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
  25. double sideBarItemHeight = 48,
  26. double itemHorizontalPadding = 10,
  27. double itemIconTextSpacing = 12,
  28. double itemBorderRadius = 10,
  29. double? minimizeButtonIconSize,
  30. BoxBorder? sideBarBorder,
  31. required List<SSideBarItem> sidebarItems,
  32. required ValueChanged<int>? onTapForAllTabButtons,
  33. int? preSelectedItemIndex,
  34. bool ignoreDifferenceOnFlutterWeb = false,
  35. dynamic minimizeButtonOnTap(
    1. bool isMinimized
    )?,
  36. List<bool> shouldTapItems = const [],
})

Creates a configurable sidebar widget.

Implementation

const SSideBar({
  super.key,
  this.sideBarColor = const Color(0xff1D1D1D),
  this.selectedIconBackgroundColor = const Color(0xff323232),
  this.unSelectedTextColor = const Color(0xffA0A5A9),
  this.selectedTextColor = Colors.white,
  this.selectedIconColor = Colors.white,
  this.unselectedIconColor = const Color(0xffA0A5A9),
  this.hoverColor = Colors.black38,
  this.splashColor = Colors.black87,
  this.highlightColor = Colors.black,
  this.minimizeButtonColor,
  this.borderRadius = 20,
  this.sideBarWidth = 240,
  this.sideBarHeight,
  this.sideBarSmallWidth = 84,
  this.settingsDivider = true,
  this.isMinimized = false,
  this.compactMode = false,
  this.showTooltipsWhenMinimized = true,
  this.curve = Curves.easeOutExpo,
  this.sideBarAnimationDuration = const Duration(milliseconds: 700),
  this.floatingAnimationDuration = const Duration(milliseconds: 300),
  this.dividerColor = const Color(0xff929292),
  this.textStyle =
      const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
  this.sideBarItemHeight = 48,
  this.itemHorizontalPadding = 10,
  this.itemIconTextSpacing = 12,
  this.itemBorderRadius = 10,
  this.minimizeButtonIconSize,
  this.sideBarBorder,
  required this.sidebarItems,
  required this.onTapForAllTabButtons,
  this.logo,
  this.preSelectedItemIndex,
  this.ignoreDifferenceOnFlutterWeb = false,
  this.minimizeButtonOnTap,
  this.shouldTapItems = const [],
});