EdgeSideBar constructor

const EdgeSideBar({
  1. Key? key,
  2. required List<Widget> children,
  3. double width = 70,
  4. double height = 200,
  5. Color backgroundColor = Colors.white,
  6. double borderRadius = 30,
  7. Duration animationDuration = const Duration(milliseconds: 300),
  8. bool initialExpanded = true,
  9. Widget? toggleButton,
  10. EdgeSideBarDirection edgeSideBarDirection = EdgeSideBarDirection.right,
  11. SidebarTriggerMode triggerMode = SidebarTriggerMode.both,
  12. double topOffset = 170,
  13. double sidebarLeftOffset = 0,
  14. double toggleTopOffset = 80,
  15. double toggleLeftOffset = 0,
  16. double toggleButtonWidth = 10,
  17. double toggleButtonHeight = 150,
  18. Color toggleButtonBorderColor = const Color(0xFF9E9E9E),
  19. Color defaultToggleColor = Colors.white12,
  20. double? rightOffset,
})

Implementation

const EdgeSideBar({
  super.key,
  required this.children,
  this.width = 70,
  this.height = 200,
  this.backgroundColor = Colors.white,
  this.borderRadius = 30,
  this.animationDuration = const Duration(milliseconds: 300),
  this.initialExpanded = true,
  this.toggleButton,
  this.edgeSideBarDirection = EdgeSideBarDirection.right,
  this.triggerMode = SidebarTriggerMode.both,
  this.topOffset = 170,
  this.sidebarLeftOffset = 0,
  this.toggleTopOffset = 80,
  this.toggleLeftOffset = 0,
  this.toggleButtonWidth = 10,
  this.toggleButtonHeight = 150,
  this.toggleButtonBorderColor = const Color(0xFF9E9E9E),
  this.defaultToggleColor = Colors.white12,
  this.rightOffset,
});