CurtainSideBarConfig constructor Null safety
- {double width = _kSideBarWidth,
- double expandWidth = _kSideBarExpandWidth,
- Duration duration = _kSideBarDuration,
- Widget headerBuilder( )?,
- Color backgroundColor = Colors.white,
- Color actionsBackgroundColor = Colors.white,
- Color actionsSelectedBackgroundColor = Colors.green,
- double actionsSpacing = 15,
- double selectedActionXOffset = 10,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.end,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center}
Config of the CurtainSideBar
.
Implementation
const CurtainSideBarConfig({
this.width = _kSideBarWidth,
this.expandWidth = _kSideBarExpandWidth,
this.duration = _kSideBarDuration,
this.headerBuilder,
this.footerBuilder,
this.backgroundColor = Colors.white,
this.actionsBackgroundColor = Colors.white,
this.actionsSelectedBackgroundColor = Colors.green,
this.actionsSpacing = 15,
this.selectedActionXOffset = 10,
this.mainAxisAlignment = MainAxisAlignment.end,
this.crossAxisAlignment = CrossAxisAlignment.center,
}) : assert(expandWidth > width, 'expandWidth should be greater than width');