curtains library

📜 Curtains Library

pub.dev Listing | API Doc | GitHub

API References: Curtains | Sensitivity | 👥 package:shadows: 🕴 Elevation

Provides super simple scrim 📜 Curtains, or shadow decorations,
by wrapping a scrollable child, alluding to unrevealed content
while not at the start or end.

Reference

Elevation paradigm handled by 👥 package:shadows

Classes

BoxDecoration
An immutable description of how to paint a box.
BoxShadow
A shadow cast by a box.
Color
An immutable 32 bit color value in ARGB format.
Curtains
📜 Curtains
Elevation
🕴 Elevation double => <BoxShadow>[]
Offset
An immutable 2D floating-point offset.
Sensitivity
Sensitivity corresponds to a tolerance amount at either the start or end of a scrollable wrapped in Curtains.

Extensions

BoxShadowsUtils on List<BoxShadow>
â›… Box Shadows Utilities
BoxShadowUtils on BoxShadow
👓 Box Shadow Utilities
ElevationUtils on List<BoxShadow>
Provides 🟦 materialize for a tuple of BoxShadows.

Constants

kElevationShadowOpacityRamp → const List<double>
🟦 0.2, 0.14, 0.12 Considering the shadows in kElevationToShadow use these three Colors:
kElevationToShadow → const Map<int, List<BoxShadow>>
Map of elevation offsets used by Material Design to BoxShadow definitions.