ScrollShadow.simple constructor
const
ScrollShadow.simple({
- required Widget? child,
- double topRightPadding = 0.0,
- double topLeftPadding = 0.0,
- Radius topRadius = Radius.zero,
- double bottomRightPadding = 0.0,
- double bottomLeftPadding = 0.0,
- Radius bottomRadius = Radius.zero,
- ShadowVisibility topShadowVisibility = ShadowVisibility.whenScrolled,
- ShadowVisibility bottomShadowVisibility = ShadowVisibility.whenScrolled,
- Color topShadowColor = Colors.black,
- Color bottomShadowColor = Colors.black,
- Color topShadowDividerColor = const Color(0xD0000000),
- Color bottomShadowDividerColor = const Color(0xD0000000),
- double? elevation,
- bool ifHidesShadowForNegativeScroll = false,
- 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,
});