tailwind 0.0.5 tailwind: ^0.0.5 copied to clipboard
A simple Tailwind utility library for Flutter, enabling quick and efficient UI building with utility-first classes, making it easier to create clean and responsive designs.
import 'package:flutter/material.dart';
import 'package:tailwind/tailwind.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Tailwind Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: Scaffold(
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Container(
width: 100,
height: 100,
// Use Tailwind colors
color: Tw.colors.sky.shade500,
),
Container(
width: 100,
height: 100,
// Use Tailwind spacing
padding: Tw.insets.p4,
color: Tw.colors.purple.shade500,
child: Container(color: Tw.colors.teal.shade500),
),
],
),
),
),
);
}
}