dievas 0.0.5
dievas: ^0.0.5 copied to clipboard
Dievas design system. Flutter theme and component layer.
Change Log #
0.0.5 #
- New:
DievasTag— pill/rounded shape viaDievasTagBorderRadiussealed class, per instance colour overrides (backgroundColor,foregroundColor,borderColor), and border width stable sizing across all styles. - Change: All American "Color" naming renamed to British "Colour" —
DievasTheme.coloursOf(),context.colours,DievasThemeAspect.colours,DievasColourThemeData. - API:
DievasTagBorderRadius.pillnow usesDievasRadiusSemantic.full(9999.0) viaresolve()instead ofcontainerHeight / 2. - Fix:
DievasTagstable-width test targets Container descendants of DievasTag instead of globalfind.byType(Container). - Internal: Downgraded
widgetbookto ^3.21.0,metato>=1.17.0 <2.0.0,testto ^1.30.0 for Flutter SDK 3.41.9 compatibility.
0.0.4 #
- New:
DievasGlobalThemeDatanow accepts an optionalDievasTypographyThemeData? typographyparameter for custom type scales (instead of hardcodedDievasTypographySemanticdefaults). - Change:
DievasGlobalThemeDatarelaxed fromsealedtobaseto allow consumer app extension. - New: Private
_rawconstructor added — bypasses all derivation (typography, elevation, components, material) for use bycopyWith. - Optimization:
copyWithnow returnsthisimmediately when nothing changed, and reuses pre computed_material,_elevation, and_typographywhen only components change. Only component derivation is re-run. - API:
copyWithnow also acceptsDievasTypographyThemeData? typographyfor dynamic type scale overrides. - Internal:
DievasLightThemeData.copyWithandDievasDarkThemeData.copyWithpasstypographythrough to match the updated method signature.
0.0.3 #
- Surface colours: Added
SurfaceColoursvalue object with canvas, code, sidebar, and table striped tokens; wired into light/dark themes. - Breakpoints:
DievasGridBreakpointnow referencesDievasBreakpointSemantic.*instead of hardcoded pixel values. - Elevation:
_buildDefaultElevationusesoffsetYfrom eachDievasElevationShadowLayerrather thanOffset.zero. - Easing curves: Added 4
Curvefields toDievasAnimationThemeData(easingStandard,easingEnter,easingExit,easingEmphasize) resolved fromDievasEasingPrimitives; replaced hardcodedCurves.easeOutCubic/Curves.easeInOutacross 6 components. - Component quality:
- Replaced all
AnimatedBuilderusages withAnimatedWidgetsubclasses (switch, auth_code, loader). - Removed bang (
!) operators from component code. - Replaced
_DigitBox._buildContentbuilder function with a switch expression dispatching to private widget classes. - Replaced hardcoded
Colors.blackin auth_code obscured dot with token aware fallback. - DievasTheme integration:
animationOf()accessor returning typedDievasAnimationThemeDatafor curve lookups in components.
0.0.2 #
- Added
repository:andhomepage:to pubspec. - Added
example/directory. - Improved dart doc coverage.
0.0.1 #
- Initial release.
- Theme infrastructure: InheritedModel based theming with static sub system accessors, brand theme contract, and default light/dark themes.
- Components: buttons, form inputs, display components, feedback/overlay components, navigation/disclosure widgets.
- Semantic colour schemes, typography roles, spacing/sizing scale, elevation layers, and animation presets.