👥 Shadows
WORK IN PROGRESS
Provides 👓 BoxShadowUtils extension on BoxShadow for manipulation of shadows by copyWith
.
- Consider the
operator
overrides 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
- 📋
copyWith
Copy With replacement properties - ❌
*
"Multiply"this
BoxShadow by aColor
- ❌
*
"Multiply"this
blurRadius
by anum
- ➕
+
"Add" tothis
spreadRadius
adouble smudgeSpread
- ➖
-
"Subtract" fromthis
spreadRadius
adouble squishSpread
- 📏
%
"Modulate"this
offset
byOffset
offsetScale
- 📋
- ⛅ BoxShadowsUtils extension on
List<BoxShadow>
- 🎨
colorize
aList<BoxShadow>
with single[Color]
orList
colors
- Optionally ❓
preserveOpacity
of the originals
- Optionally ❓
- 📊
rampOpacity
of aList<BoxShadow>
with single[double]
orList
stops
- Optionally 🎨 override a
color
and 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>
- 🟦
materialize
will 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>
fromBoxShadow
or applying some algorithm to theblurRadius
es in aList<BoxShadow>
, etc.
🐞 Bugs
- None known.
Libraries
- shadows
- 👥 Shadows