tailwind 0.0.7 copy "tailwind: ^0.0.7" to clipboard
tailwind: ^0.0.7 copied to clipboard

Inspired from TailwindCSS. It is a simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes.

Inspired from TailwindCSS. It is a simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes, making it easier to create beautiful designs.

Features #

Utility classes #

  • ✅ Tw.colors: All tailwind colors
  • ✅ Tw.insets: All tailwind EdgeInsets for Padding/Margin
  • ✅ Tw.spaces: All tailwind SizedBoxes for spacing between two widgets
  • ❌ Size
  • ❌ Typography
  • ❌ Border

Extensions #

  • ... list will be updated as this package progresses.

Installation #

dart pub add tailwind

Usage #

Colors #

Tw.colors.cyan // same as shade500 or *-cyan-500
Tw.colors.cyan.shade500 // *-cyan-500
Tw.colors.purple.shade400 // *-purple-400

// Custom value
Tw.colors.color(0xffbada55) // Same as Color(0xffbada55)

Insets (Padding/Margin) #

Tw.insets.i4 // 16px all sides
Tw.insets.i4.x // 16px horizontal
Tw.insets.i4.y // 16px vertical
Tw.insets.i4.t // 16px top
Tw.insets.i4.b // 16px bottom
Tw.insets.i4.l // 16px left
Tw.insets.i4.r // 16px right

// Custom value
Tw.insets.inset(0.5).r // 0.5px right

Space (Gap between widgets in Row/Column) #

Tw.spaces.s4 // 16px space

// Custom value
Tw.spaces.space(0.5) // 0.5px space

// Space between children of Row/Column or any List<Widget>
Row(
  mainAxisSize: MainAxisSize.min,
  children: [
      Card(),
      Card(),
      Card(),
  ].space(Tw.spaces.s4), // Gap between children
),

Additional information #

This package is inspired from TailwindCSS

1
likes
160
pub points
13%
popularity

Publisher

verified publishercodingmitra.com

Inspired from TailwindCSS. It is a simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes.

Repository (GitHub)
View/report issues

Topics

#tailwind #css #flutter

Documentation

API reference

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tailwind