BoxDecorations class
Extension for Fluent Input Decoration
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
darkCard(
{double radius = 10, Color background = const Color(0xFF1E1E1E), Color border = const Color(0xFF333333)}) → BoxDecoration - Dark card with border (for dark themes)
-
glass(
{double radius = 16, Color color = Colors.white12, bool withBorder = true}) → BoxDecoration - Glassmorphism blur effect
-
gradientBox(
{required List< Color> colors, double radius = 12}) → BoxDecoration - Gradient box (for buttons, banners)
-
minimalBorder(
{double radius = 8, Color? borderColor, Color? background}) → BoxDecoration - Minimal border with padding look (like Tailwind / Chakra cards)
-
neonGlow(
{required Color glowColor, double radius = 10, Color background = Colors.black}) → BoxDecoration - Neon Glow style (great for buttons or focus areas)
-
softCard(
{Color? color, double radius = 12, Color? borderColor}) → BoxDecoration - Soft shadow & subtle border, like Material cards