tailwind_cli 0.3.0 copy "tailwind_cli: ^0.3.0" to clipboard
tailwind_cli: ^0.3.0 copied to clipboard

outdated

A simple yet best tailwind style generation cli tool for flutter projects.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:tailwind/tailwind.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primaryColor: TwColors.yellow500,
        appBarTheme: AppBarTheme(
          backgroundColor: TwColors.blueGray800,
          elevation: 0,
          centerTitle: true,
        ),
      ),
      home: ExamplePage(),
    );
  }
}

class ExamplePage extends StatelessWidget {
  ExamplePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Tailwind UI style for flutter'),
      ),
      body: SafeArea(
        child: TwPadding(
          child: TwColumn(<Widget>[
            TwWrap(
              <Widget>[
                'This is the demo of TwWrap Widget'.text.textXl.bold.coolGray700.render(),
                TwSpacers.sp2.widthBox,
                Text('Item 2 of TwWrap Widget').text.bodyText1.primaryColor.render(),
              ],
            ).vertical.alignStart.render(),
            TwRow([
              TwText('TwContainer with extension')
                  .bodyText1
                  .indigo500
                  .semiBold
                  .maxLines(1)
                  .ellipsis
                  .render()
                  .container
                  .white
                  .border
                  .borderDp2
                  .borderIndigo500
                  .shadow
                  .rounded
                  .center
                  .px4
                  .py3
                  .render()
                  .expanded(),
              TwSpacers.sp3.widthBox,
              TwContainer(
                child: Text('Direct TwContainer').text.bodyText1.indigo500.semiBold.render(),
              ).white.shadow.rounded.center.px4.py3.render().expanded(),
            ]).justifyBetween.alignCenter.render().container.mt4.render(),
          ]).alignStart.justifyCenter.max.render(),
        ).px3.render(),
      ),
    );
  }
}
29
likes
0
pub points
57%
popularity

Publisher

verified publisherdevsbuddy.com

A simple yet best tailwind style generation cli tool for flutter projects.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dcli, flutter

More

Packages that depend on tailwind_cli