Sidebar constructor
const
Sidebar({
- required ScrollableWidgetBuilder builder,
- required double minWidth,
- Key? key,
- BoxDecoration? decoration,
- bool? isResizable = true,
- bool dragClosed = true,
- double? dragClosedBuffer,
- double? snapToStartBuffer,
- double? maxWidth = 400.0,
- double? startWidth,
- EdgeInsets padding = EdgeInsets.zero,
- double windowBreakpoint = 556.0,
- Widget? top,
- Widget? bottom,
- double topOffset = 51.0,
- bool shownByDefault = true,
Creates a Sidebar.
The builder and minWidth properties are required. The sidebar builds with a scrollbar internally.
Implementation
const Sidebar({
required this.builder,
required this.minWidth,
this.key,
this.decoration,
this.isResizable = true,
this.dragClosed = true,
double? dragClosedBuffer,
this.snapToStartBuffer,
this.maxWidth = 400.0,
this.startWidth,
this.padding = EdgeInsets.zero,
this.windowBreakpoint = 556.0,
this.top,
this.bottom,
this.topOffset = 51.0,
this.shownByDefault = true,
}) : dragClosedBuffer = dragClosedBuffer ?? minWidth / 2;