👥 Shadows
WORK IN PROGRESS
Provides 👓 BoxShadowUtils extension on BoxShadow for manipulation of shadows by copyWith.
- Consider the
operatoroverrides for even simpler syntax.
Provides ⛅ BoxShadowsUtils extension on List<BoxShadow> for mass shadow manipulation.
Provides 🕴 Elevation class with static methods used to simply produce BoxDecorations from Flutter's top-level kElevationToShadow.
📖 Reference
- 👓 BoxShadowUtils extension on BoxShadow
- 📋
copyWithCopy With replacement properties - ❌
*"Multiply"thisBoxShadow by aColor - ❌
*"Multiply"thisblurRadiusby anum - ➕
+"Add" tothisspreadRadiusadouble smudgeSpread - ➖
-"Subtract" fromthisspreadRadiusadouble squishSpread - 📏
%"Modulate"thisoffsetbyOffsetoffsetScale
- 📋
- ⛅ BoxShadowsUtils extension on
List<BoxShadow>- 🎨
colorizeaList<BoxShadow>with single[Color]orListcolors- Optionally ❓
preserveOpacityof the originals
- Optionally ❓
- 📊
rampOpacityof aList<BoxShadow>with single[double]orListstops- Optionally 🎨 override a
colorand ramp simultaneously
- Optionally 🎨 override a
- 🎨
- 🕴 Elevation's static decoration methods
- Elevation.asBoxShadows
(double elevation, {Color? color}) - Elevation.asBoxDecoration
(double elevation, {Color? color})
- Elevation.asBoxShadows
- 🟦 ElevationUtils extension on
List<BoxShadow>- 🟦
materializewill apply the Material-standard shadow opacity map kElevationShadowOpacityRamp to aList<BoxShadow>
- 🟦
🧫 Examples
🕴 Elevation
🟦 ElevationUtils
👓 BoxShadowUtils
⛅ BoxShadowsUtils
🌇 Roadmap
- Provide examples.
- Develop more utilities, like generating
List<BoxShadow>fromBoxShadowor applying some algorithm to theblurRadiuses in aList<BoxShadow>, etc.
🐞 Bugs
- None known.
Libraries
- shadows
- 👥 Shadows