Sidebar constructor

const Sidebar({
  1. required ScrollableWidgetBuilder builder,
  2. required double minWidth,
  3. Key? key,
  4. BoxDecoration? decoration,
  5. bool? isResizable = true,
  6. bool dragClosed = true,
  7. double? dragClosedBuffer,
  8. double? snapToStartBuffer,
  9. double? maxWidth = 400.0,
  10. double? startWidth,
  11. EdgeInsets padding = EdgeInsets.zero,
  12. double windowBreakpoint = 556.0,
  13. Widget? bottom,
  14. double topOffset = 51.0,
})

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.bottom,
  this.topOffset = 51.0,
}) : dragClosedBuffer = dragClosedBuffer ?? minWidth / 2;