SSideBar constructor
const
SSideBar({
- Key? key,
- Color sideBarColor = const Color(0xff1D1D1D),
- Color selectedIconBackgroundColor = const Color(0xff323232),
- Color unSelectedTextColor = const Color(0xffA0A5A9),
- Color selectedTextColor = Colors.white,
- Color selectedIconColor = Colors.white,
- Color unselectedIconColor = const Color(0xffA0A5A9),
- Color hoverColor = Colors.black38,
- Color splashColor = Colors.black87,
- Color highlightColor = Colors.black,
- Color? minimizeButtonColor,
- double borderRadius = 20,
- double sideBarWidth = 240,
- double? sideBarHeight,
- double sideBarSmallWidth = 84,
- bool settingsDivider = true,
- bool isMinimized = false,
- bool compactMode = false,
- bool showTooltipsWhenMinimized = true,
- Curve curve = Curves.easeOutExpo,
- Duration sideBarAnimationDuration = const Duration(milliseconds: 700),
- Duration floatingAnimationDuration = const Duration(milliseconds: 300),
- Color dividerColor = const Color(0xff929292),
- TextStyle textStyle = const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
- double sideBarItemHeight = 48,
- double itemHorizontalPadding = 10,
- double itemIconTextSpacing = 12,
- double itemBorderRadius = 10,
- double? minimizeButtonIconSize,
- BoxBorder? sideBarBorder,
- required List<
SSideBarItem> sidebarItems, - required ValueChanged<
int> ? onTapForAllTabButtons, - Widget? logo,
- int? preSelectedItemIndex,
- bool ignoreDifferenceOnFlutterWeb = false,
- dynamic minimizeButtonOnTap(
- bool isMinimized
- 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 [],
});