FadeScrollAppBar constructor

const FadeScrollAppBar({
  1. Key? key,
  2. required ScrollController scrollController,
  3. required Widget fadeWidget,
  4. required Widget child,
  5. double fadeOffset = 0,
  6. double toolbarHeight = kToolbarHeight,
  7. double? collapsedHeight = 65,
  8. double? expandedHeight = 200,
  9. bool floating = false,
  10. bool pinned = false,
  11. bool snap = false,
  12. Color? backgroundColor = Colors.white,
  13. double? elevation = 5,
  14. Widget? bottomWidget,
  15. double bottomWidgetHeight = 0,
  16. Future<void> appBarOnStretchTrigger()?,
  17. bool appBarStretch = false,
  18. double appBarStretchTriggerOffset = 100,
  19. Widget? appBarLeading,
  20. bool appBarAutomaticallyImplyLeading = false,
  21. Widget? appBarTitle,
  22. List<Widget>? appBarActions,
  23. Color? appBarShadowColor,
  24. bool appBarForceElevated = false,
  25. Color? appBarForegroundColor,
  26. IconThemeData? appBarIconTheme,
  27. IconThemeData? appBarActionsIconTheme,
  28. bool appBarPrimary = true,
  29. bool? appBarCenterTitle,
  30. bool appBarExcludeHeaderSemantics = false,
  31. double? appBarTitleSpacing,
  32. ShapeBorder? appBarShape,
  33. double? appBarLeadingWidth,
  34. TextStyle? appBarToolbarTextStyle,
  35. TextStyle? appBarTitleTextStyle,
  36. SystemUiOverlayStyle? appBarSystemOverlayStyle,
})

Implementation

const FadeScrollAppBar({
  Key? key,
  //
  required this.scrollController,
  required this.fadeWidget,
  required this.child,
  this.fadeOffset = 0,
  this.toolbarHeight = kToolbarHeight,
  this.collapsedHeight = 65,
  this.expandedHeight = 200,
  this.floating = false,
  this.pinned = false,
  this.snap = false,
  this.backgroundColor = Colors.white,
  this.elevation = 5,
  this.bottomWidget,
  this.bottomWidgetHeight = 0,
  //
  this.appBarOnStretchTrigger,
  this.appBarStretch = false,
  this.appBarStretchTriggerOffset = 100,
  this.appBarLeading,
  this.appBarAutomaticallyImplyLeading = false,
  this.appBarTitle,
  this.appBarActions,
  this.appBarShadowColor,
  this.appBarForceElevated = false,
  this.appBarForegroundColor,
  this.appBarIconTheme,
  this.appBarActionsIconTheme,
  this.appBarPrimary = true,
  this.appBarCenterTitle,
  this.appBarExcludeHeaderSemantics = false,
  this.appBarTitleSpacing,
  this.appBarShape,
  this.appBarLeadingWidth,
  this.appBarToolbarTextStyle,
  this.appBarTitleTextStyle,
  this.appBarSystemOverlayStyle,
  //
}) : super(key: key);