Skip to content
On this page

ScrollShadow

Edge shadows that indicate additional scrollable content.

ScrollShadow in FluttyUIScrollShadow in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

ScrollShadow

const ScrollShadow({
  super.key,
  required this.child,
  this.controller,
  this.size = 100,
  this.enabled = true,
  this.visibilityThreshold = 0,
  this.borderRadius = BorderRadius.zero,
  this.color,
  this.orientation,
  this.visibility = ScrollShadowVisibility.auto,
  this.animationDuration,
});
ParameterTypeRequiredDefault
keyKey?Nonull
childWidgetYes—
controllerScrollController?Nonull
sizedoubleNo100
enabledboolNotrue
visibilityThresholddoubleNo0
borderRadiusBorderRadiusGeometryNoBorderRadius.zero
colorColor?Nonull
orientationAxis?Nonull
visibilityScrollShadowVisibilityNoScrollShadowVisibility.auto
animationDurationDuration?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/utilities/scroll_shadow/scroll_shadow.dart

This reference is generated from the ScrollShadow declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI