tailwindcss_build 0.4.6
tailwindcss_build: ^0.4.6 copied to clipboard
A comprehensive Flutter package that brings the power and convenience of Tailwind CSS utility classes to Flutter development.
[2025-10-03] - Version 0.4.6 - Z-Index System & Enhanced Overflow Implementation #
π― Z-Index Layout System #
- π Complete Z-Index Support: Added full TailwindCSS-style z-index system for layer control
- π Z-Index Methods: Implemented
z0()
,z1()
,z2()
,z3()
,z4()
,z5()
,z10()
,z20()
,z30()
,z40()
,z50()
- π§ Negative Z-Index: Added
zNegative1()
,zNegative10()
,zNegative20()
,zNegative30()
,zNegative40()
,zNegative50()
- β‘ Custom Z-Index: Added
zIndex(value)
for custom z-index values - π¨ Z-Auto Support: Implemented
zAuto()
for automatic z-index behavior - π οΈ Transform Integration: Z-index implemented using Flutter's Transform widget for proper layering
π Z-Index API Examples #
// Basic Z-Index Usage
Text('Background').asContainer()
.z0()
.bgRed500()
.build()
Text('Foreground').asContainer()
.z10()
.bgBlue500()
.build()
// Negative Z-Index
Text('Behind').asContainer()
.zNegative10()
.bgGray500()
.build()
// Custom Z-Index Values
Text('Custom Layer').asContainer()
.zIndex(999)
.bgGreen500()
.build()
// Combined with other styles
Text('Layered Content').asContainer()
.z50()
.p4()
.bgWhite()
.shadow()
.rounded8()
.build()
[2025-10-03] - Version 0.4.5 - Overflow & Scroll System Implementation #
π― New Overflow Feature Module #
- π ScrollBuilder Pattern: Brand new scroll and overflow control builder class
- π Basic Overflow Methods: Implemented
overflow-auto
,overflow-hidden
,overflow-clip
,overflow-visible
,overflow-scroll
- βοΈ Overflow X-Axis Control: Implemented
overflow-x-auto
,overflow-x-hidden
,overflow-x-clip
,overflow-x-visible
,overflow-x-scroll
- βοΈ Overflow Y-Axis Control: Implemented
overflow-y-auto
,overflow-y-hidden
,overflow-y-clip
,overflow-y-visible
,overflow-y-scroll
ποΈ Scroll Feature Capabilities #
- π¦ Single Direction Scroll Support: Horizontal or vertical scrolling via SingleChildScrollView
- π Bidirectional Scroll Support: Automatic nested SingleChildScrollView for bidirectional scrolling
- βοΈ Clipping Behavior Control: Content overflow display control via ClipBehavior and ClipRect
- β‘ Scroll Physics Effects: Support for custom ScrollPhysics and ScrollController
- π Padding Support: Support for adding padding to scroll views
π¨ Widget Extensions #
- π Chaining Support: All Widgets can be converted to ScrollBuilder via
asScrollView()
- π― ContainerBuilder Integration: ScrollBuilder can seamlessly convert to ContainerBuilder for continued chaining
- π Interaction Extensions: ScrollBuilder supports
onTap()
and other interaction methods
π Complete Example Application #
- π― OverflowDemo Component: Created complete overflow functionality demo component
- π Real-world Use Cases: Horizontal card lists, chat message scrolling and other practical examples
- π¨ Combined Usage Display: Showcases combined usage of overflow with other builders
π API Usage Examples #
// Overflow Visible - Allow content overflow
Widget().asScrollView()
.overflowVisible()
.build()
// Overflow Hidden - Hide overflow content
Widget().asScrollView()
.overflowHidden()
.build()
// Overflow X Scroll - Horizontal scrolling
Row(children: [...])
.asFlex()
.build()
.asScrollView()
.overflowXScroll()
.build()
// Overflow Y Scroll - Vertical scrolling
Column(children: [...])
.asFlex()
.flexCol()
.build()
.asScrollView()
.overflowYScroll()
.build()
// Overflow Auto - Bidirectional scrolling
Container(...)
.asScrollView()
.overflowAuto()
.build()
// Chained method combinations
Row(children: [...])
.asFlex()
.gap2()
.build()
.asScrollView()
.overflowXAuto()
.build()
.asContainer()
.p4()
.bgGray100()
.rounded8()
.build()
π οΈ Technical Implementation #
- π§ ScrollBuilder Class: Specialized builder class for handling overflow and scroll behavior
- β‘ Performance Optimization: Optimal Widget combinations based on different scenarios (SingleChildScrollView / ClipRect)
- π‘οΈ Backward Compatibility: All new features do not affect existing APIs
- π± Cross-platform Support: Full support for all Flutter platforms (Android, iOS, Web, Windows, macOS, Linux)
[2025-10-01] - Version 0.4.4 - Complete Size Constraints System & Enhanced Documentation #
π Complete Size Constraints Implementation #
- π Min-Width Support: Added complete min-width system with
min-w-0
tomin-w-96
,min-w-auto
,min-w-full
,min-w-screen
,min-w-min
,min-w-max
,min-w-fit
- π Max-Width Support: Added complete max-width system with
max-w-0
tomax-w-96
,max-w-auto
,max-w-full
,max-w-screen
,max-w-min
,max-w-max
,max-w-fit
- π Min-Height Support: Added complete min-height system with
min-h-0
tomin-h-96
,min-h-auto
,min-h-full
,min-h-screen
,min-h-min
,min-h-max
,min-h-fit
- π Max-Height Support: Added complete max-height system with
max-h-0
tomax-h-96
,max-h-auto
,max-h-full
,max-h-screen
,max-h-min
,max-h-max
,max-h-fit
ποΈ Container Scale System #
- π¦ Container Min-Width: Added
min-w-3xs
tomin-w-7xl
(16rem to 80rem) for responsive container sizing - π¦ Container Max-Width: Added
max-w-3xs
tomax-w-7xl
(16rem to 80rem) for responsive container sizing - π¦ Container Min-Height: Added
min-h-3xs
tomin-h-7xl
(16rem to 80rem) for responsive container sizing - π¦ Container Max-Height: Added
max-h-3xs
tomax-h-7xl
(16rem to 80rem) for responsive container sizing
π― Advanced Constraint Features #
- β‘ Custom Values: Added
minW(value)
,maxW(value)
,minH(value)
,maxH(value)
for custom constraint values - π§ Custom Methods: Added
minWCustom()
,maxWCustom()
,minHCustom()
,maxHCustom()
for explicit custom values - π± Viewport Support: Added
minWScreen()
,maxWScreen()
,minHScreen()
,maxHScreen()
for viewport-based sizing - π¨ Content Sizing: Added
minWMin()
,minWMax()
,minWFit()
,maxWMin()
,maxWMax()
,maxWFit()
for content-based sizing
ποΈ Technical Implementation #
- π§ BoxConstraints Integration: Enhanced ContainerBuilder to properly handle min/max width and height constraints
- β‘ Performance Optimized: All constraints are applied through Flutter's native BoxConstraints system
- π‘οΈ Backward Compatible: All existing width and height methods continue to work unchanged
- π± Cross-Platform: Full support across all Flutter platforms (Android, iOS, Web, Windows, macOS, Linux)
π Enhanced Demo Application #
- π― Size Constraints Demo: Added comprehensive demo showcasing all new size constraint methods
- π Visual Examples: Interactive examples showing min-width, max-width, min-height, and max-height effects
- π¨ Container Scale Demo: Examples demonstrating container scale sizing (3xs to 7xl)
- π± Responsive Examples: Showcasing how constraints work in different screen sizes
π Documentation Enhancements #
- π Complete README Update: Added comprehensive Size Constraints System documentation
- π― Position Layout Documentation: Added detailed Position Layout System documentation with examples
- π API Reference: Updated API reference with all new size constraint methods
- π¨ Code Examples: Added practical examples for size constraints and positioning
- π± Best Practices: Included best practices for responsive design with constraints
π API Examples #
// Min-Width Examples
Text('Content').asContainer()
.minW32() // min-width: 128px
.minW48() // min-width: 192px
.minWFull() // min-width: 100%
.minWScreen() // min-width: 100vw
.build()
// Max-Width Examples
Text('Content').asContainer()
.maxWsm() // max-width: 384px
.maxWmd() // max-width: 448px
.maxWlg() // max-width: 512px
.maxWFull() // max-width: 100%
.build()
// Min-Height Examples
Text('Content').asContainer()
.minH16() // min-height: 64px
.minH24() // min-height: 96px
.minHFull() // min-height: 100%
.minHScreen() // min-height: 100vh
.build()
// Max-Height Examples
Text('Content').asContainer()
.maxH32() // max-height: 128px
.maxH48() // max-height: 192px
.maxHFull() // max-height: 100%
.maxHScreen() // max-height: 100vh
.build()
// Container Scale Examples
Text('Content').asContainer()
.minWsm() // min-width: 24rem (384px)
.maxWlg() // max-width: 32rem (512px)
.minHmd() // min-height: 28rem (448px)
.maxHxl() // max-height: 36rem (576px)
.build()
// Custom Values
Text('Content').asContainer()
.minW(200) // min-width: 200px
.maxW(600) // max-width: 600px
.minH(100) // min-height: 100px
.maxH(400) // max-height: 400px
.build()
[2025-09-30] - Version 0.4.3 - Position Layout & Advanced Text Enhancements #
π― Position Layout System #
- π Complete Position Support: Added full TailwindCSS-style positioning system with absolute, relative, fixed, and sticky positioning
- π Position Methods: Implemented
positionStatic()
,positionRelative()
,positionAbsolute()
,positionFixed()
,positionSticky()
- π― Tailwind-style Values: Added
top0()
totop4()
,right0()
toright4()
,bottom0()
tobottom4()
,left0()
toleft4()
methods - π§ Custom Positioning: Added
top(value)
,right(value)
,bottom(value)
,left(value)
for custom values - β‘ Inset Shortcuts: Implemented
inset0()
toinset4()
,insetX0()
toinsetX2()
,insetY0()
toinsetY2()
for common patterns - π¨ Positioned Helper: Added
positioned()
method for complex positioning with all parameters
π °οΈ Advanced Text Enhancements #
- β¨ Text Decoration Lines: Added
underline()
,overline()
,lineThrough()
,noUnderline()
with combination support - π¨ Decoration Styles: Implemented
decorationSolid()
,decorationDouble()
,decorationDotted()
,decorationDashed()
,decorationWavy()
- π Decoration Thickness: Added
decoration0()
todecoration8()
,decorationAuto()
,decorationFromFont()
,decorationCustom()
- π Decoration Colors: Full TailwindCSS color palette support for text decorations across all color families
- π Text Transform: Implemented
uppercase()
,lowercase()
,capitalize()
,normalCase()
transformations - β‘ Text Overflow: Added
truncate()
,textEllipsis()
,textClip()
for overflow control - π Text Wrap: Implemented
textWrap()
,textNowrap()
,textBalance()
,textPretty()
for wrapping control - π― Combination Decorations: Added
underlineLineThrough()
,underlineOverline()
,allDecorations()
methods
π Documentation Updates #
- π Enhanced README: Updated documentation to showcase new position and text features
- π§ API Reference: Added comprehensive method listings for new capabilities
- π‘ Usage Examples: Included practical examples for position layouts and text enhancements
- π Multi-language Support: Updated both English and Chinese documentation
π§ Technical Improvements #
- ποΈ ContainerBuilder Extensions: Added
ContainerBuilderPositionExtensions
for position-related methods - π TextBuilder Extensions: Enhanced
TextBuilderTailwindExtensions
with decoration and transform methods - β‘ Performance: Maintained single-widget creation philosophy for optimal performance
- π‘οΈ Backward Compatibility: All changes are additive - no breaking changes to existing API
π± Platform Support #
- β All Platforms: Position and text features work across Android, iOS, Web, Windows, macOS, Linux
- π― Flutter Optimized: Leveraged native Flutter positioning and text styling capabilities
- π§ Cross-platform Consistency: Ensured consistent behavior across all supported platforms
[2025-09-29] - Version 0.4.2 - Perfect Static Analysis & Pub.dev Score #
π Pub.dev Score Optimization #
- π Perfect Static Analysis: Achieved 0 static analysis issues (down from 145) for maximum pub.flutter-io.cn scoring
- π¦ Complete Platform Support: Added explicit support for all 6 platforms (Android, iOS, Web, Windows, macOS, Linux)
- β‘ Performance Excellence: Optimized all constructor calls with const keywords for better runtime performance
- π― Quality Score: Significantly improved pub.flutter-io.cn package scoring from previous release
- π§ HTML Comments Fix: Fixed HTML-style angle brackets in documentation comments that were causing static analysis warnings
π§ Code Quality Enhancements #
- β Zero Linting Issues: Fixed all prefer_const_constructors warnings across the entire codebase
- π§Ή Example Code Polish: Enhanced all demo files to meet highest coding standards
- π Deprecated API Cleanup: Replaced all deprecated method calls (asTextBuilder β asText)
- π¨ Type Safety: Improved type consistency in Color and Offset constructors
- π Documentation Standards: Cleaned up documentation comments to avoid HTML-style formatting
π Development Quality #
- π€ Systematic Fixes: Applied file-by-file improvements for better maintainability
- π Documentation Standards: Ensured all example code follows best practices
- π Web Compatibility: Full web platform support for modern Flutter development
- π― Static Analysis Perfect Score: From 40/50 to perfect score by eliminating all warnings and issues
[2025-09-29] - Version 0.4.1 - Package Quality & Platform Support #
π§ Code Quality Enhancements #
- π Massive Static Analysis Improvements: Fixed over 3500 static analysis issues to improve pub.flutter-io.cn scoring
- π¦ Web Platform Support: Added explicit web platform support in pubspec.yaml
- β‘ Performance Optimizations: Added 2842+ const keywords to constructor invocations for better performance
- π§Ή Code Cleanup: Automated cleanup of unnecessary const keywords and other linting issues
- π Pub.dev Score Improvement: Significantly improved package scoring from previous issues
- β Zero Static Analysis Issues: Achieved perfect static analysis score with 0 issues (down from 145)
- π§ Example Code Quality: Fixed all const constructor issues in demo files for better pub.flutter-io.cn scoring
π Platform Support #
- β Web Compatibility: Package now explicitly supports web platform alongside mobile and desktop
- π± Complete Platform Coverage: Support for Android, iOS, Web, Windows, macOS, Linux
π¨ Development Tools #
- π€ Automated Fixes: Created and used automated scripts to batch-fix common code quality issues
- π Quality Metrics: Reduced static analysis issues from 3000+ to under 2200
[2025-09-28] - Version 0.4.0 - Builder Pattern Architecture & Complete Color System #
ποΈ Architecture Revolution #
- π Builder Pattern Implementation: Complete rewrite to builder pattern architecture for improved performance and chainability
- π― ContainerBuilder: New centralized container builder collecting all styling properties and building a single Container at the end
- π TextBuilder: New text builder for chainable text styling with comprehensive TailwindCSS support
- π FlexBuilder: New flex layout builder separating layout concerns from visual styling
- β‘ Performance Optimization: Eliminated multiple Container nesting, dramatically improving widget tree efficiency
π¨ Complete Color System Integration #
- π TwColors Integration: All background and border colors now use the complete TailwindCSS color system from colors.dart
- π All Color Palettes: Support for Gray, Slate, Zinc, Neutral, Stone, Red, Orange, Amber, Yellow, Lime, Green, Emerald, Teal, Cyan, Sky, Blue, Indigo, Violet, Purple, Fuchsia, Pink, Rose color families
- π― Complete Color Ranges: Each color family includes 50-950 variants (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950)
- π§ Consistent API: Background colors (bgBlue600()) and border colors (borderRed300()) using standardized TwColors
β¨ New Builder Pattern API #
// New Container Builder Pattern
Text('Hello World')
.asText()
.textWhite()
.fontBold()
.build()
.asContainer()
.px6()
.py3()
.bgBlue600()
.r8()
.shadow()
.build()
// New Flex Builder Pattern
[
Text('Item 1').build(),
Text('Item 2').build(),
Text('Item 3').build(),
].asFlex()
.flexRow()
.justifyCenter()
.itemsCenter()
.asContainer()
.bgGray100()
.p4()
.r8()
.build()
// Chainable Interactions
Text('Button')
.asText()
.textWhite()
.fontMedium()
.build()
.asContainer()
.px6()
.py3()
.bgBlue600()
.r8()
.shadow()
.onTap(() => print('Clicked!'))
π§ Breaking Changes & Migration #
- β οΈ API Changes: Old
asContainer()
method deprecated, use new builder pattern - π Method Renaming:
asTextBuilder()
βasText()
,asContainerBuilder()
βasContainer()
- π¦ Import Changes: Some conflicting extensions disabled to prioritize builder pattern
- π Height/Width:
h()
andw()
methods now integrated directly into ContainerBuilder
π± Enhanced Demo Application #
- π― Simplified Demos: Clean, focused demos for Text, Container, Flex, and Button builders
- π₯οΈ BottomNavigationBar: New tabbed interface for better demo navigation
- π Documentation: Each demo showcases best practices and builder pattern usage
- π¨ Real Examples: Practical examples showing builder combinations and interactions
π― Border System Enhancement #
- π Default Border:
border()
method now accepts optional color parameter with gray-200 default - π¨ TailwindCSS Alignment: Border behavior now matches official TailwindCSS specifications
- π§ Simplified API: Consistent border methods across all color families
β οΈ Pre-1.0.0 Notice #
This is a pre-1.0.0 release focusing on architectural improvements and builder pattern implementation. As we work toward the optimal solution, some APIs may be deprecated or changed in breaking ways. The current builder implementations (ContainerBuilder, TextBuilder, FlexBuilder) are production-ready and represent the future direction of this library.
[2025-09-26] - Version 0.3.2 - Animation System Fixes & Documentation Enhancement #
π§ Bug Fixes #
- π¬ Fixed
AnimatedContainer
constructor syntax errors in transition_animation.dart - π οΈ Corrected
_withDuration
method name and implementation - π Resolved method naming conflicts in animation utilities
- π Eliminated remaining constructor syntax issues
π Documentation Improvements #
- π Added Japanese README (README_JP.md) for better international support
- π Enhanced language navigation between English, Chinese, and Japanese docs
- π Improved documentation accessibility and user experience
β‘ Performance Improvements #
- π― Optimized animation helper methods for better performance
- πΎ Cleaned up transition duration handling
- π§ Enhanced animation method consistency
[2025-09-26] - Version 0.3.1 - Static Analysis & Code Quality Improvements #
π§ Code Quality Enhancements #
- π Resolved 472 static analysis issues to improve pub.flutter-io.cn scoring
- π Replaced deprecated
withOpacity
calls withwithValues
for better precision - π± Updated deprecated
textScaleFactor
to usetextScaler
for modern text scaling - β‘ Added
const
keywords to constructor invocations for better performance - π§Ή Fixed unnecessary
this.
qualifiers and other linting issues - π¦ Enhanced package compliance with pub.flutter-io.cn standards
π― Performance Optimizations #
- πΎ Improved memory usage with const constructors
- π Better rendering performance with optimized text scaling
- π¨ Enhanced color precision with new withValues API
- π§ Reduced unnecessary rebuilds through code optimization
[2025-09-23] - Complete Chat Application Example #
β¨ New Features #
- π± Complete chat application example showcasing TailwindCSS Build in real-world projects
- π Implemented five core pages: homepage, chat list, chat details, moments feed, and profile center
- π¨ Support for dark/light theme mode switching, providing better user experience
- π Complete internationalization support (Chinese/English), demonstrating multilingual app development
- π State management using MobX, following best practice patterns
- π¬ Chat functionality: message sending, receiving, time display, user status, etc.
- πΈ Moments feature: post publishing, likes, comments, image display, etc.
- βοΈ Personal settings page: theme switching, language selection, user info editing, etc.
- π Chat search functionality and unread message counter
- π― Built entirely with TailwindCSS Build syntax, showcasing the power of method chaining
π Technical Highlights #
- π Significantly enhanced project practicality and demonstration effects
- ποΈ Showcased TailwindCSS Build architectural patterns in complex applications
- π± Validated the toolkit's mobile adaptation capabilities
- π¨ Demonstrated best practices for deep method chaining and component composition
- π§ Implemented responsive state management using MobX
- π Complete internationalization solution
π Project Structure #
lib/chat/
βββ models/ # Data models
βββ stores/ # MobX state management
βββ pages/ # Page components
βββ l10n/ # Internationalization
βββ utils/ # Utility classes
π± Page Features #
- HomePage: Bottom navigation bar + page routing
- ChatListPage: Chat list + search + unread counter
- ChatDetailPage: Message bubbles + input box + real-time sending
- MomentsPage: Dynamic list + likes/comments + image display
- ProfilePage: Personal info + settings page + theme/language switching
0.3.0 - 2025-09-23 #
π Package Enhancement & Documentation Overhaul #
β¨ Package Improvements
- Version Update: Upgraded to v0.3.0 with complete package metadata
- MIT License: Updated to MIT License with 2024 copyright
- Package Info: Added comprehensive package description, repository links, and documentation URLs
- Pub.dev Ready: Fully prepared for pub.flutter-io.cn publication with all required metadata
π Documentation Complete Rewrite
- English README: Comprehensive English documentation with complete feature overview
- Chinese README: Full simplified Chinese documentation (README_CN.md)
- Language Navigation: Added language switching links between English and Chinese versions
- Feature Coverage: Detailed documentation of all 80+ utility modules including:
- Layout & Positioning (Flexbox, Grid, Spacing, Sizing)
- Typography (Font Family, Size, Weight, Color, Alignment)
- Colors & Backgrounds (Complete Tailwind color palette)
- Borders & Effects (Width, Color, Style, Radius, Shadow)
- Filters & Transforms (Blur, Brightness, Rotate, Scale)
- Advanced Features (Widget Extensions, Accessibility, SVG)
π§ Technical Enhancements
- Installation Guide: Clear installation instructions with version 0.3.0
- Usage Examples: Comprehensive code examples for all major features
- Best Practices: Guidelines for responsive design and accessibility
- Advanced Configuration: Custom themes and color blind support examples
π Complete Feature Documentation
- 80+ Utility Modules: Full documentation of all available utilities
- Widget Extensions: asRow(), asColumn(), asStack(), asWrap() conversion methods
- Accessibility: WCAG compliance, color blind support, high contrast themes
- SVG Support: Complete SVG styling and manipulation capabilities
- Responsive Design: Mobile and desktop adaptive utilities
This version represents a major milestone with production-ready documentation and package configuration, making it fully ready for public distribution and community adoption.
0.2.8 - 2025-09-23 #
π¨ SVG & Accessibility Final Enhancement #
β¨ New Feature Modules
- svg-utilities: Complete SVG support system including fill, stroke, stroke-width and other SVG style controls
- accessibility-utilities: Complete accessibility system including forced-color-adjust and advanced accessibility features
π§ SVG Feature Highlights
- Fill Colors: Basic controls like fill-none, fill-inherit, fill-current, fill-transparent
- Complete Color System: Support for all Tailwind color systems, from slate to rose with all color scales
- Stroke Colors: Stroke color controls like stroke-none, stroke-inherit, stroke-current
- Stroke Width: Stroke width controls like stroke-0, stroke-1, stroke-2
- SVG Components: svgIcon(), svgNetwork() for SVG image loading and color control
- Builder Pattern: SvgBuilder class for quickly building complex SVG components
βΏ Accessibility Feature Highlights
- Forced Colors: forced-color-adjust-auto, forced-color-adjust-none for forced color adjustment
- High Contrast: highContrast() high contrast mode support
- Dark Mode Adaptation: darkModeAdaptive() automatic dark mode adaptation
- Animation Control: reduceMotion() to reduce animations (respecting system settings)
- Screen Reader: screenReaderFriendly() screen reader friendly
- Enhanced Focus: enhancedFocus() enhanced focus visibility
- Color Blind Friendly: colorBlindFriendly() color blind user friendly design
- Adaptive Font Size: adaptiveFontSize() adaptive font sizing
- Touch Target: minTouchTarget() ensuring minimum touch target size
- Keyboard Navigation: keyboardNavigable() keyboard navigation support
- Dynamic Font: dynamicFont() dynamic font support
- System Theme: systemThemeAdaptive() system theme adaptation
π¨ Accessibility Helper Tools
- Contrast Check: AccessibilityChecker.calculateContrastRatio() for color contrast calculation
- WCAG Standards: meetsWCAGAA(), meetsWCAGAAA() WCAG accessibility standard checks
- Color Blind Filters: Support for protanopia(red), deuteranopia(green), tritanopia(blue), monochromacy(complete) color blindness filters
- Accessibility Themes: AccessibilityTheme.highContrastTheme(), largeTextTheme() preset accessibility themes
π API Examples
// SVG Style Control
Widget().fillRed500() // Red fill
Widget().fillTransparent() // Transparent fill
Widget().strokeBlue500() // Blue stroke
Widget().stroke2() // 2px stroke width
Widget().customFill(Colors.purple)
Widget().customStrokeWidth(3.0)
// SVG Components
Widget().svgIcon(
assetPath: 'assets/icon.svg',
width: 24,
height: 24,
color: Colors.blue,
)
// SVG Builder
SvgBuilder()
.asset('assets/icon.svg')
.size(32, 32)
.color(Colors.red)
.fit(BoxFit.contain)
.build()
// Accessibility Features
Widget().highContrast(
enabled: true,
foregroundColor: Colors.black,
backgroundColor: Colors.white,
)
Widget().colorBlindFriendly(
type: ColorBlindType.protanopia,
)
Widget().enhancedFocus(
focusColor: Colors.blue,
focusWidth: 2.0,
)
Widget().minTouchTarget(
minWidth: 44.0,
minHeight: 44.0,
)
// Accessibility Checks
final ratio = AccessibilityChecker.calculateContrastRatio(
Colors.black,
Colors.white,
);
final isAccessible = AccessibilityChecker.meetsWCAGAA(
Colors.black,
Colors.white,
);
// Accessibility Themes
MaterialApp(
theme: AccessibilityTheme.highContrastTheme(),
// or
theme: AccessibilityTheme.largeTextTheme(scaleFactor: 1.5),
)
π Important Milestone: This version completes the full implementation of Tailwind CSS in Flutter, including all major feature modules:
- β Layout (Flexbox, Grid, Spacing, Sizing)
- β Typography (Font, Text, Colors)
- β Backgrounds (Colors, Images, Gradients)
- β Borders & Outline (Width, Color, Style, Radius)
- β Effects (Shadows, Opacity, Blend Modes)
- β Filters (Blur, Brightness, Contrast, Color)
- β Tables (Border, Spacing, Layout)
- β Transitions & Animation (Duration, Easing, Keyframes)
- β Transforms (Rotate, Scale, Translate, Skew)
- β Interactivity (Cursor, Touch, Scroll, Drag)
- β SVG (Fill, Stroke, Width)
- β Accessibility (Color Adjust, High Contrast, WCAG)
0.2.7 - 2025-09-23 #
π― Interactivity System Enhancement #
β¨ New Feature Modules
- interactivity: Complete CSS interaction system including cursor, pointer-events, user-select, scroll-behavior and other interactive features
π§ Interactivity Feature Highlights
- Accent Color: accent-color support for auto, inherit, current, transparent and other color controls
- Appearance: appearance-none, appearance-auto for native style control
- Caret Color: Complete caret-color control
- Color Scheme: color-scheme support for normal, light, dark, light-dark modes
- Cursor Styles: Complete cursor support including pointer, text, move, help, resize and 30+ cursor types
- Field Sizing: field-sizing-content, field-sizing-fixed for field size control
- Pointer Events: pointer-events-none, pointer-events-auto for pointer event control
- Resize: resize-none, resize, resize-x, resize-y for resize control
- Scroll Behavior: scroll-auto, scroll-smooth for scroll behavior control
- Scroll Margin: scroll-margin 0-64 complete margin control with directional support
- Scroll Padding: scroll-padding 0-64 complete padding control with directional support
- Scroll Snap: snap-start, snap-end, snap-center, snap-align-none for scroll alignment
- Snap Stop: snap-normal, snap-always for scroll stop control
- Snap Type: snap-x, snap-y, snap-both, snap-mandatory, snap-proximity for scroll types
- Touch Action: touch-auto to touch-manipulation for complete touch action control
- User Select: select-none, select-text, select-all, select-auto for text selection control
- Performance: will-change-auto to will-change-transform for performance optimization hints
π¨ Advanced Interactive Features
- Drag System: draggable(), dragTarget() for complete drag support
- Gesture Detection: longPressDetector(), doubleTapDetector() for gesture recognition
- Hover Effects: hoverEffect(), clickable() for interactive feedback
- Focus Management: focusDetector(), keyboardListener() for focus and keyboard handling
- Semantic Support: semantics(), excludeSemantics(), mergeSemantics() for accessibility
- State Control: disabled(), loading() for component state management
π API Examples
// Cursor Control
Widget().cursorPointer() // Pointer cursor
Widget().cursorText() // Text cursor
Widget().cursorMove() // Move cursor
Widget().cursorNotAllowed() // Not allowed cursor
Widget().customCursor(SystemMouseCursors.grab)
// Pointer Events
Widget().pointerEventsNone() // Disable pointer events
Widget().pointerEventsAuto() // Enable pointer events
// User Selection
Widget().selectNone() // Disable selection
Widget().selectText() // Allow text selection
Widget().selectAll() // Allow select all
// Scroll Control
Widget().scrollSmooth() // Smooth scrolling
Widget().scrollM4() // Scroll margin 4
Widget().scrollP8() // Scroll padding 8
Widget().snapCenter() // Scroll snap center
// Touch Control
Widget().touchPanX() // X-axis pan
Widget().touchPanY() // Y-axis pan
Widget().touchPinchZoom() // Pinch zoom gesture
// Advanced Interactions
Widget().draggable(
data: 'item',
onDragStarted: () => print('Drag started'),
);
Widget().dragTarget<String>(
onAccept: (data) => print('Received: $data'),
);
Widget().clickable(
onTap: () => print('Clicked'),
cursor: SystemMouseCursors.click,
);
Widget().longPressDetector(
onLongPress: () => print('Long pressed'),
);
Widget().hoverEffect(
duration: Duration(milliseconds: 200),
);
// Semantic Support
Widget().semantics(
label: 'Button',
hint: 'Tap to execute action',
button: true,
onTap: () => print('Semantic tap'),
);
// State Control
Widget().disabled() // Disabled state
Widget().loading(isLoading: true) // Loading state
0.2.6 - 2025-09-23 #
π Transforms System Enhancement #
β¨ New Feature Modules
- transforms: Complete CSS transform system including rotate, scale, translate, skew, perspective and all transform functions
π§ Transforms Feature Highlights
- Backface Visibility: backface-visible, backface-hidden for controlling backface display in 3D transforms
- Perspective Effects: perspective-250 to perspective-1000 for complete perspective depth control
- Perspective Origin: perspective-origin-center, perspective-origin-top and 9 directional controls
- Rotation Transform: rotate-0 to rotate-180 bidirectional rotation with 1Β° to 180Β° precise control
- Scale Transform: scale-0 to scale-150 complete scaling range with overall, X-axis, Y-axis independent scaling
- Skew Transform: skew-x/skew-y supporting 1Β° to 12Β° X/Y axis skew transforms
- Translate Transform: translate-x/translate-y supporting pixel, rem, percentage value complete control
- Transform Origin: origin-center to origin-top-left and 9 origin positions
- Transform Style: transform-flat, transform-preserve-3d for 3D transform style control
- Custom Transforms: Support for custom Matrix4, 3D transform combinations, flip effects
π API Examples
// Rotation Transform
Widget().rotate45() // 45 degree rotation
Widget().rotateNeg90() // -90 degree rotation
Widget().customRotate(30) // Custom 30 degree rotation
// Scale Transform
Widget().scale150() // 150% scaling
Widget().scaleX75() // X-axis 75% scaling
Widget().scaleY125() // Y-axis 125% scaling
Widget().customScale(scaleX: 1.2, scaleY: 0.8)
// Translate Transform
Widget().translateX16() // X-axis 16px translation
Widget().translateYNeg24() // Y-axis -24px translation
Widget().translateXHalf() // X-axis 50% translation
Widget().customTranslate(20, -10)
// Skew Transform
Widget().skewX12() // X-axis 12 degree skew
Widget().skewYNeg6() // Y-axis -6 degree skew
Widget().customSkew(skewX: 15, skewY: -5)
// Perspective Effect
Widget().perspective500() // 500px perspective
Widget().perspectiveOriginTop()
// Transform Origin
Widget().originCenter() // Center origin
Widget().originTopLeft() // Top-left origin
// 3D Transform Combination
Widget().transform3D(
rotateX: 45,
rotateY: 30,
translateZ: 10,
scaleX: 1.2,
);
// Flip Effects
Widget().flipHorizontal() // Horizontal flip
Widget().flipVertical() // Vertical flip
Widget().flipDiagonal() // Diagonal flip
// Custom Matrix Transform
Widget().customTransform(Matrix4.identity()..rotateZ(0.5))
0.2.5 - 2025-09-23 #
π Tables & π¬ Transitions & Animation System Enhancement #
β¨ New Feature Modules
- table-utilities: Complete CSS table system including border-collapse, border-spacing, table-layout, caption-side
- transition-animation: Complete transition animation system including transition-property, transition-duration, animation, etc.
π§ Tables Feature Highlights
- Border Control: border-collapse, border-separate for table border merging control
- Border Spacing: border-spacing-0 to border-spacing-24 for complete spacing control
- Table Layout: table-auto, table-fixed for table layout modes
- Caption Position: caption-top, caption-bottom for table caption position control
- Table Builder: TableBuilder class for quickly building complex tables
- Cell Styles: tableHeaderCell, tableDataCell for specialized cell styles
- Border Styles: tableWithFullBorder, tableWithOuterBorder and other quick border settings
π¬ Transitions & Animation Feature Highlights
- Transition Properties: transition-all, transition-colors, transition-opacity, transition-shadow, transition-transform
- Transition Behavior: transition-behavior-normal, transition-behavior-allow-discrete
- Transition Duration: duration-75 to duration-1000 for complete time control
- Easing Functions: ease-linear, ease-in, ease-out, ease-in-out timing functions
- Transition Delay: delay-75 to delay-1000 for delay control
- Preset Animations: animate-spin, animate-ping, animate-pulse, animate-bounce
- Custom Animations: fadeIn, fadeOut, slideIn, scaleIn, rotateIn and other extended animations
- Hover Effects: hoverScale, hoverOpacity for interactive animations
- Animation Management: AnimationManager animation controller management class
- Animation Sequence: AnimationSequence for building complex animation sequences
π API Examples
// Tables
TableBuilder()
.addHeaderRow(['Name', 'Age', 'City'])
.addDataRow([Text('John'), Text('25'), Text('NYC')])
.withBorder(TableBorder.all())
.build()
.borderCollapse()
.borderSpacing4()
.tableFixed();
// Cell Styles
Text('Header').tableHeaderCell(backgroundColor: Colors.grey[200])
Text('Data').tableDataCell(padding: EdgeInsets.all(12))
// Transitions
Widget()
.transitionAll(duration: Duration(milliseconds: 300))
.duration500()
.easeInOut()
.delay100();
// Animations
Widget().animateSpin() // Spin animation
Widget().animatePulse() // Pulse animation
Widget().animateBounce() // Bounce animation
Widget().fadeIn() // Fade in animation
Widget().slideIn() // Slide in animation
Widget().scaleIn() // Scale in animation
// Custom Animation
Widget().customAnimation(
animation: controller,
builder: (context, child, value) => Transform.scale(
scale: value,
child: child,
),
);
0.2.4 - 2025-09-23 #
π¨ Filters System Enhancement #
β¨ New Feature Modules
- filter: Complete CSS filter system including blur, brightness, contrast, drop-shadow and all filter effects
- backdrop-filter: Backdrop filter system supporting backdrop-blur, backdrop-brightness and other backdrop filter effects
π§ Feature Highlights
- Blur Filters: blur-sm, blur, blur-md, blur-lg, blur-xl, blur-2xl, blur-3xl for complete blur effects
- Brightness Filters: brightness-0 to brightness-200 for complete brightness control range
- Contrast Filters: contrast-0 to contrast-200 for complete contrast control
- Drop Shadow Filters: drop-shadow-sm to drop-shadow-2xl for multi-level drop shadow effects
- Color Filters: grayscale, hue-rotate, invert, saturate, sepia for complete color filtering
- Backdrop Filters: Complete backdrop-filter support for frosted glass effects and background blur
- Hue Rotation: hue-rotate-15, hue-rotate-30, hue-rotate-60, hue-rotate-90, hue-rotate-180
- Saturation Control: saturate-0, saturate-50, saturate-100, saturate-150, saturate-200
- Custom Filters: Support for custom ImageFilter and ColorFilter matrices
π API Examples
// Blur Effects
Widget().blur() // 8px blur
Widget().blurLg() // 16px blur
Widget().backdropBlur() // Backdrop blur
// Brightness/Contrast
Widget().brightness150() // 150% brightness
Widget().contrast125() // 125% contrast
// Color Filters
Widget().grayscale() // Grayscale effect
Widget().sepia() // Sepia effect
Widget().hueRotate90() // 90 degree hue rotation
Widget().saturate150() // 150% saturation
// Drop Shadow Effects
Widget().dropShadow() // Standard drop shadow
Widget().dropShadowLg() // Large drop shadow
// Invert Effects
Widget().invert() // Invert filter
// Custom Filters
Widget().customBlur(12, 12) // Custom blur
Widget().customBrightness(1.2) // Custom brightness
Widget().f(ImageFilter.blur(...)) // Custom filter
0.2.3 - 2025-09-23 #
π¨ Effects System Enhancement #
β¨ New Feature Modules
- box-shadow: Box shadow control utilities including shadow-sm, shadow, shadow-md, shadow-lg, shadow-xl, shadow-2xl presets
- text-shadow: Text shadow control utilities supporting various shadow effects and color systems
- opacity: Opacity control utilities supporting complete 0-100 opacity range and animation effects
- mix-blend-mode: Blend mode control utilities supporting multiply, screen, overlay, darken, lighten and all CSS blend modes
- background-blend-mode: Background blend mode control utilities for blending background images with background colors
- mask-utilities: Mask feature collection including mask-clip, mask-composite, mask-image and complete masking system
π§ Feature Highlights
- Complete Shadow System: From subtle shadow-sm to strong shadow-2xl, supporting colored shadows and custom shadows
- Text Effects: Text shadows, glow, outline, emboss, engrave and various text effects
- Opacity Control: Support for 0-100% opacity including animated opacity and conditional opacity
- Blend Modes: Complete CSS blend mode support including color matrices and filter effects
- Masking System: Gradient masks, shape masks, text masks and advanced visual effects
- Material Design: Built-in Material Design style elevation shadow system
- Flutter Optimized: Optimized for Flutter features using native components like ShaderMask, ColorFiltered
π API Examples
// Shadow Effects
Widget().shadow() // Standard shadow
Widget().shadowLg() // Large shadow
Widget().shadowBlue500() // Blue shadow
Widget().elevation4() // Material Design shadow
// Text Shadow
Text("Hello").textShadow() // Text shadow
Text("Glow").textGlow() // Text glow
Text("Outline").textOutline() // Text outline
// Opacity
Widget().opacity50() // 50% opacity
Widget().fadeIn() // Fade in animation
Widget().hideIf(condition) // Conditional hide
// Blend Modes
Widget().mixBlendMultiply() // Multiply blend
Widget().sepia() // Sepia effect
Widget().duotoneBlue() // Blue duotone
// Mask Effects
Widget().fadeEdgeMask() // Edge fade mask
Widget().circularMask() // Circular mask
Widget().maskImageLinear() // Linear gradient mask
0.2.2 - 2025-09-22 #
π¨ Border & Outline System Enhancement #
β¨ New Feature Modules
- border-width: Border width control utilities supporting border-0, border-2, border-4, border-8 and other preset values
- border-color: Border color control utilities including complete Tailwind CSS color system support
- border-style: Border style control utilities supporting solid, dashed, dotted, double and other styles
- outline-width: Outline width control utilities using BoxShadow to simulate outline effects
- outline-color: Outline color control utilities including complete color system and opacity support
- outline-style: Outline style control utilities supporting various outline styles and animation effects
- outline-offset: Outline offset control utilities supporting precise offset control
π§ Feature Highlights
- Complete Directional Support: All border functions support independent control of top/right/bottom/left directions
- Logical Property Support: Provides start/end logical properties that automatically adapt to LTR/RTL text direction
- Complete Color System: Supports 50-900 color scales for gray/red/blue/green and other color families
- Simplified API Design: Provides simplified methods like bw(), bc(), bs(), ow(), oc()
- Flutter Optimized: Optimized for Flutter platform features using Container and BoxShadow implementation
- Focus Style Support: Dedicated focus state outline styles for enhanced user experience
- Ring Effects: Simulates Tailwind CSS ring effects supporting modern outline design
π API Examples
// Border Width
Widget().border2() // 2px border
Widget().borderT4() // Top 4px border
Widget().bw(3) // Custom 3px border
// Border Color
Widget().borderRed500() // Red border
Widget().borderTBlue500() // Top blue border
Widget().bc(Colors.purple) // Custom purple border
// Outline Effects
Widget().outline2() // 2px outline
Widget().outlineRed500() // Red outline
Widget().outlineOffset4() // 4px offset outline
Widget().ringBlue500() // Blue ring effect
0.2.1 - 2025-09-21 #
π Major Update: Complete Example Project Refactoring #
π± New Tabbed Example Application
- Refactored example project into complete TabBar application with 6 functional tabs
- Created beautiful homepage showcasing all feature overviews and quick start guide
- Each feature module has dedicated demo page with detailed explanations
π¨ Border Radius System Enhancement
- Enhanced border_radius.dart utility class with complete Tailwind CSS border-radius functionality
- Added basic border radius utilities: roundedXs(), roundedSm(), roundedMd(), roundedLg(), roundedXl(), rounded2xl(), rounded3xl(), rounded4xl()
- Added special border radius utilities: roundedNone(), roundedFull()
- Added directional border radius utilities: roundedT(), roundedR(), roundedB(), roundedL() series
- Added individual corner border radius utilities: roundedTl(), roundedTr(), roundedBl(), roundedBr() series
- Added logical property border radius utilities: roundedS(), roundedE(), roundedSs(), roundedSe(), roundedEs(), roundedEe() series (RTL support)
- Added custom border radius utilities: r(), rTop(), rBottom(), rLeft(), rRight(), rOnly() and other simplified APIs
- Added common border radius value shortcuts: r2(), r4(), r6(), r8(), r12(), r16(), r20(), r24(), r32()
π Complete Demo Pages
- AspectRatioDemo: Complete aspect ratio functionality demonstration including real-world application scenarios
- BorderRadiusDemo: Comprehensive border radius showcase including RTL support and combined usage
- WidthDemo: Width control demonstration including responsive layout and form design
- HeightDemo: Height control demonstration including interface layout and data visualization
- ColorsDemo: Color system demonstration including color scheme guides and best practices
π Technical Improvements
- Exported all utility class extensions in main file
- Each demo incorporates other utility classes to showcase combined effects
- Added detailed usage instructions and best practice recommendations
- Optimized code structure and documentation comments
0.2.0 #
- Added select widget functionality
0.1.9 #
- Added single corner rounded border radius support
0.1.8 #
- Fixed border property error
0.1.7 #
- Fixed image flex1 bug
0.1.6 #
- Added comprehensive examples
- Added input focus event handling
- Fixed grid and flex layout bugs
0.1.5 #
- Fixed text overflow and wrap issues
- Enhanced image auto-sizing functionality
0.1.4 #
- Fixed grid auto-height and gap spacing
0.1.3 #
- Added overflow-x and overflow-y controls
0.1.2 #
- General bug fixes
0.1.1 #
- Fixed Input widget bugs and added placeholder support
0.1.0 #
- General bug fixes and added tabs functionality
0.0.9 #
- Fixed flex layout center alignment bug
0.0.8 #
- Added image support
0.0.7 #
- Added relative positioning
0.0.6 #
- Added input widget examples
0.0.5 #
- Added border, border-radius, background gradient, and box-shadow utilities
0.0.4 #
- Added text alignment, grid, grid-cols, and aspect ratio utilities
0.0.3 #
- Added line height, max lines, and font style utilities
0.0.2 #
- Added font size examples
- Added flex layout functionality
0.0.1 #
- Initial release