ScrollShadow.simple constructor

const ScrollShadow.simple({
  1. required Widget? child,
  2. double topRightPadding = 0.0,
  3. double topLeftPadding = 0.0,
  4. Radius topRadius = Radius.zero,
  5. double bottomRightPadding = 0.0,
  6. double bottomLeftPadding = 0.0,
  7. Radius bottomRadius = Radius.zero,
  8. ShadowVisibility topShadowVisibility = ShadowVisibility.whenScrolled,
  9. ShadowVisibility bottomShadowVisibility = ShadowVisibility.whenScrolled,
  10. Color topShadowColor = Colors.black,
  11. Color bottomShadowColor = Colors.black,
  12. Color topShadowDividerColor = const Color(0xD0000000),
  13. Color bottomShadowDividerColor = const Color(0xD0000000),
  14. double? elevation,
  15. bool ifHidesShadowForNegativeScroll = false,
  16. Key? key,
})

Implementation

const ScrollShadow.simple({
  required this.child,
  this.topRightPadding = 0.0,
  this.topLeftPadding = 0.0,
  this.topRadius = Radius.zero,
  this.bottomRightPadding = 0.0,
  this.bottomLeftPadding = 0.0,
  this.bottomRadius = Radius.zero,
  this.topShadowVisibility = ShadowVisibility.whenScrolled,
  this.bottomShadowVisibility = ShadowVisibility.whenScrolled,
  this.topShadowColor = Colors.black,
  this.bottomShadowColor = Colors.black,
  this.topShadowDividerColor = const Color(0xD0000000),
  this.bottomShadowDividerColor = const Color(0xD0000000),
  this.elevation,
  this.ifHidesShadowForNegativeScroll = false,
  super.key,
});