tailwind_attributes 1.0.0 copy "tailwind_attributes: ^1.0.0" to clipboard
tailwind_attributes: ^1.0.0 copied to clipboard

Tailwind Attributes.

Tailwind Attributes #

Theming based on Attributes

Config: tailwind.config.json

Example:

Widget build(BuildContext context) {
  List<TextAttribute> headline(Tw tw) => [tw.text.xl, tw.font.bold, tw.text.slate(900)];
  List<TextAttribute> body(Tw tw) => [tw.text.base, tw.font.normal, tw.font.italic, tw.text.slate700];

  return Column(
    children: [
      TwText(
        'Hello World!',
        attributes: Tw.attributes(context, headline),
      ),
      const Text('Body').apply(Tw.attributes(context, body)),
    ],
  );
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Tailwind Attributes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tailwind_attributes