quick_container 0.0.2 copy "quick_container: ^0.0.2" to clipboard
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, m instead of long-form property names.
  • Advanced Shorthands: Individual padding/margins like pt, pb, mx, my.
  • Shapes: Support for Rectangle, Circle, and Stadium.
  • Dashed Borders: Easily create dashed borders with custom dash and gap lengths.
  • Animations: Toggle animated: true to 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,
)
5
likes
150
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight and developer-friendly customizable container widget for Flutter.

Repository (GitHub)
View/report issues

Topics

#container #ui #widget #flutter-ui #productivity

License

MIT (license)

Dependencies

flutter

More

Packages that depend on quick_container