quick_container 0.0.2
quick_container: ^0.0.2 copied to clipboard
A lightweight and developer-friendly customizable container widget for Flutter.
Quick Container π #
A highly flexible, production-ready container widget for Flutter β a supercharged replacement for the built-in Container.
Features #
- Concise Shorthand: Use
w,h,p,minstead of long-form property names. - Advanced Shorthands: Individual padding/margins like
pt,pb,mx,my. - Shapes: Support for
Rectangle,Circle, andStadium. - Dashed Borders: Easily create dashed borders with custom dash and gap lengths.
- Animations: Toggle
animated: trueto animate changes in size, color, or decoration. - Loading State: Built-in pulsing shimmer overlay with
loading: true. - Ripple Effect: Optional Material ripple interaction with
ripple: true. - Extensions: Wrap any widget instantly using
.quick().
Installation #
Add to your pubspec.yaml:
dependencies:
quick_container: ^0.0.2
Usage #
Basic Example #
QuickContainer(
w: 200,
h: 100,
p: 16,
radius: 12,
color: Colors.blue,
shadow: true,
child: Text("Hello!"),
)
Advanced Shorthands & Shape #
QuickContainer(
px: 24, // horizontal padding
py: 12, // vertical padding
shape: QuickContainerShape.stadium,
color: Colors.green,
onTap: () => print("Tapped!"),
ripple: true,
child: Text("Capsule Button"),
)
Dashed Border & Animation #
QuickContainer(
animated: true,
dashed: true,
dashLength: 10,
gapLength: 5,
borderColor: Colors.red,
child: Text("Dashed Border"),
)
Loading State #
QuickContainer(
loading: true,
child: Text("This will be covered by shimmer"),
)
Extension Method #
Text("Instantly Wrapped").quick(
p: 20,
radius: 10,
shadow: true,
)