👥 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 a Color
    • * "Multiply" this blurRadius by a num
    • + "Add" to this spreadRadius a double smudgeSpread
    • - "Subtract" from this spreadRadius a double squishSpread
    • 📏 % "Modulate" this offset by Offset offsetScale
  • BoxShadowsUtils extension on List<BoxShadow>
    • 🎨 colorize a List<BoxShadow> with single [Color] or List colors
      • Optionally ❓ preserveOpacity of the originals
    • 📊 rampOpacity of a List<BoxShadow> with single [double] or List stops
      • Optionally 🎨 override a color and ramp simultaneously
  • 🕴 Elevation's static decoration methods
  • 🟦 ElevationUtils extension on List<BoxShadow>

🧫 Examples

🕴 Elevation

🟦 ElevationUtils

👓 BoxShadowUtils

BoxShadowsUtils

🌇 Roadmap

  1. Provide examples.
  2. Develop more utilities, like generating List<BoxShadow> from BoxShadow or applying some algorithm to the blurRadiuses in a List<BoxShadow>, etc.

🐞 Bugs

  1. None known.

Libraries

shadows
👥 Shadows