EdgeSideBar constructor
const
EdgeSideBar({
- Key? key,
- required List<
Widget> children, - double width = 70,
- double height = 200,
- Color backgroundColor = Colors.white,
- double borderRadius = 30,
- Duration animationDuration = const Duration(milliseconds: 300),
- bool initialExpanded = true,
- Widget? toggleButton,
- EdgeSideBarDirection edgeSideBarDirection = EdgeSideBarDirection.right,
- SidebarTriggerMode triggerMode = SidebarTriggerMode.both,
- double topOffset = 170,
- double sidebarLeftOffset = 0,
- double toggleTopOffset = 80,
- double toggleLeftOffset = 0,
- double toggleButtonWidth = 10,
- double toggleButtonHeight = 150,
- Color toggleButtonBorderColor = const Color(0xFF9E9E9E),
- Color defaultToggleColor = Colors.white12,
- 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,
});