FxDrawerStyle constructor

const FxDrawerStyle({
  1. double? width,
  2. ShapeBorder? shape,
  3. FxSafeAreaInsets safeArea = const FxSafeAreaInsets(top: false),
  4. double elevation = 4.0,
  5. Color? shadowColor,
  6. Color? backgroundColor,
  7. Color? surfaceTintColor,
  8. EdgeInsetsGeometry padding = EdgeInsets.zero,
  9. ScrollPhysics physics = const BouncingScrollPhysics(),
  10. bool shrinkWrap = false,
  11. Widget headerBuilder(
    1. BuildContext
    )?,
  12. Widget footerBuilder(
    1. BuildContext
    )?,
  13. FxTileStyle tileStyle = const FxTileStyle(),
  14. FxTileBuilder<FxTile>? tileBuilder,
  15. Widget separatorBuilder = const SizedBox.shrink(),
  16. Widget animationBuilder(
    1. Widget,
    2. Animation<double>
    ) = AnimatedSwitcher.defaultTransitionBuilder,
  17. Duration animationDuration = const Duration(milliseconds: 300),
})

Implementation

const FxDrawerStyle({
  this.width,
  this.shape,
  this.safeArea = const FxSafeAreaInsets(top: false),
  this.elevation = 4.0,
  this.shadowColor,
  this.backgroundColor,
  this.surfaceTintColor,

  this.padding = EdgeInsets.zero,
  this.physics = const BouncingScrollPhysics(),
  this.shrinkWrap = false,

  this.headerBuilder,
  this.footerBuilder,

  this.tileStyle = const FxTileStyle(),
  this.tileBuilder,
  this.separatorBuilder = const SizedBox.shrink(),

  this.animationBuilder = AnimatedSwitcher.defaultTransitionBuilder,
  this.animationDuration = const Duration(milliseconds: 300),
});