SideBarAnimated constructor
SideBarAnimated({
- Key? key,
- Color sideBarColor = const Color(0xff1D1D1D),
- Color animatedContainerColor = const Color(0xff323232),
- Color unSelectedTextColor = const Color(0xffA0A5A9),
- Color selectedIconColor = Colors.white,
- Color unselectedIconColor = const Color(0xffA0A5A9),
- Color hoverColor = Colors.black38,
- Color splashColor = Colors.black87,
- Color highlightColor = Colors.black,
- double borderRadius = 20,
- double sideBarWidth = 260,
- double sideBarSmallWidth = 84,
- bool settingsDivider = true,
- Curve curve = Curves.easeOut,
- Duration sideBarAnimationDuration = const Duration(milliseconds: 700),
- Duration floatingAnimationDuration = const Duration(milliseconds: 120),
- Color dividerColor = const Color(0xff929292),
- TextStyle textStyle = const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
- required String mainLogoImage,
- required List<
SideBarItem> sidebarItems, - required double widthSwitch,
- required ValueChanged<
int> ? onTap,
Implementation
SideBarAnimated({
super.key,
this.sideBarColor = const Color(0xff1D1D1D),
this.animatedContainerColor = const Color(0xff323232),
this.unSelectedTextColor = const Color(0xffA0A5A9),
this.selectedIconColor = Colors.white,
this.unselectedIconColor = const Color(0xffA0A5A9),
this.hoverColor = Colors.black38,
this.splashColor = Colors.black87,
this.highlightColor = Colors.black,
this.borderRadius = 20,
this.sideBarWidth = 260,
this.sideBarSmallWidth = 84,
this.settingsDivider = true,
this.curve = Curves.easeOut,
this.sideBarAnimationDuration = const Duration(milliseconds: 700),
this.floatingAnimationDuration = const Duration(milliseconds: 120),
this.dividerColor = const Color(0xff929292),
this.textStyle =
const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
required this.mainLogoImage,
required this.sidebarItems,
required this.widthSwitch,
required this.onTap,
});