adaptive_kit 1.0.3
adaptive_kit: ^1.0.3 copied to clipboard
The Tailwind CSS of Flutter. Zero-config adaptive UI toolkit with responsive breakpoints, adaptive widgets, design tokens, and utility extensions.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.2 - 2025-02-24 #
Added #
- Interactive Dashboard Example App
- 8 demo pages showcasing all package features
- Home/Overview with feature grid and quick stats
- Breakpoints Demo with live breakpoint detection
- Responsive Layout Demo with SmartLayout examples
- Responsive Grid Demo with interactive sliders
- Adaptive Widgets Demo with all SmartButton, SmartSwitch, SmartDialog variants
- Design Tokens Demo with typography, spacing, and radius scales
- Visibility Demo with SmartVisible and shortcut widgets
- Extensions Demo with context, widget, and number extensions
- Dark/Light theme toggle
- Responsive design using adaptive_kit itself
Changed #
- README.md completely rewritten
- Added comparison table with other packages
- Added before/after code examples
- Added comprehensive feature documentation
- Added dashboard preview section
- Improved code examples with adaptive_kit naming
Fixed #
- Updated all code examples to use
adaptive_kitinstead ofsmartui - Fixed import paths in documentation
1.0.1 - 2025-02-24 #
Fixed #
- Added web support with conditional dart:io imports
- Fixed repository and homepage URLs to point to correct GitHub repo
- Fixed lint warnings for pub.dev compliance
- Updated SDK constraint to ^3.7.0
1.0.0 - 2025-02-24 #
Changed #
- Package renamed from
smartuitoadaptive_kitfor pub.dev availability - Complete API rewrite with improved design
- Zero dependencies (only Flutter SDK)
- Comprehensive test coverage
Added #
-
Core Module
SmartBreakpointenum with watch, mobile, tablet, desktop, and tv breakpointsSmartBreakpointsclass for customizable breakpoint configurationSmartUiwidget for global configuration with InheritedWidgetSmartPlatformenum and platform detection utilities
-
Responsive Module
context.responsive<T>()extension for breakpoint-based valuescontext.responsiveInt(),context.responsiveDouble(),context.responsiveBool()context.responsivePadding()for responsive EdgeInsetsSmartLayoutwidget for breakpoint-driven layout switchingSmartGridandSmartColfor 12-column responsive grid systemResponsiveBuilderwidget with comprehensive breakpoint informationBreakpointBuilderfor simple breakpoint accessBreakpointObserverthat only rebuilds on breakpoint changesSmartVisiblewidget for conditional visibility by breakpointMobileOnly,TabletOnly,DesktopOnlyconvenience widgetsHideOnMobile,HideOnDesktopconvenience widgets
-
Tokens Module
SmartSpacingconstants (zero, xs, sm, md, lg, xl, xxl)SmartSpacingTokensfor custom spacing configurationSmartTypographyscale with 15 text styles (display, headline, title, body, label)SmartRadiustokens (none, xs, sm, md, lg, xl, xxl, full)RadiusSizeenum with.borderRadiusand.valuegetters
-
Widgets Module
SmartPaddingwith.all(),.symmetric(),.only(),.responsive()constructorsSmartHorizontalPadding,SmartVerticalPaddingconvenience widgetsSmartGapwith.xs(),.sm(),.md(),.lg(),.xl(),.xxl(),.responsive()VGap,HGapfor vertical and horizontal gapsSmartTextwith.responsive()constructor for breakpoint-based typographyDisplayText,HeadlineText,BodyText,LabelTextconvenience widgetsSmartContainerwith.sm(),.md(),.lg(),.xl(),.xxl(),.fluid(),.responsive()ResponsivePaddedContainer,CenteredContentconvenience widgetsSmartRowfor rows with token-based spacing
-
Adaptive Module
SmartScaffoldwith auto-switching navigation (bottom nav on mobile, rail on tablet, drawer on desktop)SmartAppScaffoldfor simple scaffold without navigationSmartDestinationfor navigation destinations with badgesSmartNavigationfor standalone adaptive navigationSmartNavItemfor navigation itemsSmartButtonwith.filled(),.text(),.outlined()variantsSmartIconButtonfor icon buttonsSmartSwitchfor adaptive toggle switchesSmartCheckboxfor adaptive checkboxesSmartRadio<T>for adaptive radio buttonsshowSmartDialog()for adaptive alert dialogsshowSmartConfirmDialog()for adaptive confirmation dialogsshowSmartBottomSheet()for adaptive bottom sheetsshowSmartActionSheet()for adaptive action sheetsSmartDialogAction,SmartSheetActionfor dialog/sheet actionsSmartIndicatorfor circular progress (determinate and indeterminate)SmartLinearIndicatorfor linear progressSmartLoadingOverlayfor loading statesSmartRefreshIndicatorfor pull-to-refreshSmartTabBarfor adaptive tab barsSmartBreadcrumbsfor navigation breadcrumbs
-
Extensions Module
- Context extensions:
- Screen:
.screenWidth,.screenHeight,.screenSize,.devicePixelRatio,.textScaleFactor - Orientation:
.isPortrait,.isLandscape,.orientation,.aspectRatio - Breakpoints:
.breakpoint,.isWatch,.isMobile,.isTablet,.isDesktop,.isTv - Breakpoint ranges:
.isMobileOrSmaller,.isTabletOrLarger,.isDesktopOrLarger - Platform:
.platform,.isAndroid,.isIOS,.isMacOS,.isWindows,.isLinux,.isWeb - Platform groups:
.isMobilePlatform,.isDesktopPlatform,.isApplePlatform - Design system:
.usesMaterial,.usesCupertino - Safe areas:
.safeAreaPadding,.viewPadding,.viewInsets,.isKeyboardVisible - Config:
.smartUiConfig,.breakpoints
- Screen:
- Widget extensions:
- Visibility:
.showOnly(),.hideOn(),.showOnMobile(),.showOnTablet(),.showOnDesktop(),.hideOnMobile(),.hideOnDesktop() - Padding:
.responsivePadding(),.withPadding(),.withSymmetricPadding(),.withPaddingOnly(),.padded(),.paddedAll(),.paddedSymmetric(),.paddedHorizontal(),.paddedVertical() - Layout:
.centered(),.expanded(),.flexible(),.sized(),.constrained(),.aligned() - Decoration:
.clipped(),.decorated(),.opacity() - Gestures:
.onTap(),.inkWell() - Safe area:
.safeArea() - Scrolling:
.scrollable()
- Visibility:
- Number extensions:
- Scaled sizing:
.w,.h,.sp(with SmartSize initialization) - Screen percentage:
.sw,.sh - Spacing:
.horizontalSpace,.verticalSpace,.horizontalSpaceScaled,.verticalSpaceScaled - Padding:
.paddingAll,.paddingHorizontal,.paddingVertical,.paddingLeft,.paddingRight,.paddingTop,.paddingBottom - Decoration:
.borderRadius,.radius - Duration:
.ms,.seconds,.minutes
- Scaled sizing:
- Context extensions:
Documentation #
- Comprehensive README with comparison table and code examples
- Interactive example app with 8 demo pages
- Full API documentation for all public classes and methods