SideBarAnimated constructor

SideBarAnimated({
  1. Key? key,
  2. Color sideBarColor = const Color(0xff1D1D1D),
  3. Color animatedContainerColor = const Color(0xff323232),
  4. Color unSelectedTextColor = const Color(0xffA0A5A9),
  5. Color selectedIconColor = Colors.white,
  6. Color unselectedIconColor = const Color(0xffA0A5A9),
  7. Color hoverColor = Colors.black38,
  8. Color splashColor = Colors.black87,
  9. Color highlightColor = Colors.black,
  10. double borderRadius = 20,
  11. double sideBarWidth = 260,
  12. double sideBarSmallWidth = 84,
  13. bool settingsDivider = true,
  14. Curve curve = Curves.easeOut,
  15. Duration sideBarAnimationDuration = const Duration(milliseconds: 700),
  16. Duration floatingAnimationDuration = const Duration(milliseconds: 120),
  17. Color dividerColor = const Color(0xff929292),
  18. TextStyle textStyle = const TextStyle(fontFamily: "SFPro", fontSize: 16, color: Colors.white),
  19. required String mainLogoImage,
  20. required List<SideBarItem> sidebarItems,
  21. required double widthSwitch,
  22. 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,
});