dievas 0.0.4
dievas: ^0.0.4 copied to clipboard
Dievas design system. Flutter theme and component layer.
Change Log #
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.