0.0.48
[0.0.48]
Added
- Added Chat component
- New
ColorScheme.ofmethod to access color scheme from theme data - [#346] Added param to skip focus traversal in Input features
- [PREVIEW] Added
ShadcnPreviewandShadcnMultiPreviewannotation to preview widgets during development - Add density system and density-aware padding helpers (
Density,EdgeInsetsDensity) - Add paint-order support for
Flex,Row,Column, andStackwithPaintOrderandPositioned.paintOrder - Add
InputStepperButtonFeatureand support forInputFeaturePosition.above/below - Add
Divider.childAlignmentto align divider content - Add
Widget.sized(size:)convenience overload - Add
FadedScrollableViewporthelper for scroll fade masks - [#371] Create a new page to explain GoRouter integration (by @xdidx)
Breaking Changes
- Remove sidebar-specific color tokens from
ColorScheme - [BREAKING]
RepeatModehas been renamed toLoopingMode - [BREAKING]
ShadcnLocalizationsDelegate.delegatehas been renamed toShadcnLocalizations.delegate
Migration guide:
- Remove usages of
ColorScheme.sidebar,sidebarForeground,sidebarPrimary,sidebarPrimaryForeground,sidebarAccent,sidebarAccentForeground,sidebarBorder, andsidebarRing. - Replace them with existing tokens (for example,
background,card, oraccent) or create a custom theme extension if you still need sidebar-specific colors.
// before
final colors = Theme.of(context).colorScheme;
final bg = colors.sidebar;
// after
final colors = Theme.of(context).colorScheme;
final bg = colors.background; // or a custom ThemeExtension
Changed
- Integrate density-aware spacing and padding into core layout widgets and form controls
- Extend density-aware spacing defaults across navigation, menus, overlays, and display components
- Align remaining layout and form spacing with density defaults
- Revamp the theme docs page with a kitchen-sink preview and right-side options panel
Fixed
-
Complete
ColorSchemeRecolorExtensionpalette getters -
[#380] Fixed issue with DatePicker when using PromptMode.popover
-
[#379] Fixed issue with intrinsic row height in Table component
-
[#378] Fixed issue with RepeatMode declaration in flutter master channel
-
[#373] Scaffold: Set height constraints to correctly measure header size (by @xdidx)
-
[#394] Fixes ButtonStyle.withPadding by removing shadowed variable (by @craiglabenz)