zeta_flutter 0.1.0+1 zeta_flutter: ^0.1.0+1 copied to clipboard
Zeta is the new, formal, standardized Zebra Design System based off the successes of ZDS (Zebra Design System). This package is in pre-release, and so many aspects are incomplete.
[0.1.0+1] - 2023-11-28 #
- chore: Tidy, reorganise and prepare repo
docs: update changelog and documentation
feat(type): Add xSmall and conform to latest figma designs.
- "Refactored the ZetaColors class for better customization
The ZetaColors class was heavily refactored for better customization of variables such as brightness, contrast, color swatches, and additional color attributes. Several fields were made final for the overall class safety. This change improves color control on different themes for the application."
- "Updated the ZetaColor and Theme setup to use InheritedWidget
The ZetaDefaults class was updated to Zeta inheriting from InheritedWidget. This change allows easy access to the Zeta theme settings (contrast, theme mode, theme data, color set) from anywhere in the widget tree. The ZetaAppBuilder function was updated to take in ThemeData and ThemeMode. The ZetaProvider was added to provide Zeta theming and contrast data down the widget tree. The code for the color and typography examples was adjusted to use the new Zeta context extension, instead of using Theme.of(context) to get colorScheme. This change was crucial to simplify the process of adapting the application visuals to different themes."
- "Improve theme management functionality in Zeta
Removed code concerning getting a color's RGB hex code from 'color_extensions.dart', as it was seldom used. Updated 'zeta_flutter.dart' to unhide ZetaColorGetters. Adaptations in 'zeta.dart' included switching mediaBrightness to _mediaBrightness for internal use and adding methods for accurate determination of color set and brightness settings based on the theme mode. Also, ZetaProvider was updated for 'system' theme mode support. example/lib/main.dart and example/lib/widgets.dart were updated to support these changes, including UI updates for seamless theme switching."
- "Add theme update function and extend ZetaColorGetters
Implemented a method in 'zeta.dart' to support updating the current theme data dynamically. Extended 'color_scheme.dart' by introducing _ZetaColorProperties and updating ZetaColorGetters. These changes increase flexibility for theme management and provide a structured and accessible way to get Zeta colors through the theme context."
- Remove theme_extensions.dart and move contents to colors.dart
Theme extensions were deleted and its contents were moved to colors.dart to consolidate all color-related codes in one file for easier navigation and editing. Additional enhancements include optimizing color assignments and making ZetaColors immutable for more robust color management.
- Refactor code for color theme and add theme switcher
Refactored codebase to improve the color theme handling: relocated theme related methods to colors.dart from theme_extensions.dart for consolidated color theme data. Optimized color assignments by leveraging the 'copyWith' method, allowing more efficient color management. Introduced the immutability of ZetaColors to enhance robustness. Bumped version in pubspec.yaml to 0.0.1+13 due to these changes. Renamed theme.dart to theme_data.dart for more semantic file naming. Added 'identifier' to the ZetaThemeData for easier theme identification. The visible application change is an added ThemeSwitcher in the example app, offering a UI to switch between different predefined themes.
- Add ZetaThemeService and theme switcher in example app
Implemented ZetaThemeService as an abstract class, providing structure for loading and saving themes within the app. Removed an obsolete comment within the contrast.dart and made necessary imports in zeta.dart. Asynchronous theme loading is added during app startup and saving is done upon theme updates. Also, for user-interaction, an exclusive ThemeSwitcher widget is added in the example app allowing users to select between available themes. This improves user experience, and optimizes theme handling and application performance.
- Refactor color swatch generation to utilize zeta
Refactored color swatch generation in color_example.dart to use Zeta instead of directly using the Theme. Now the brightness for ZetaColorSwatch is being pulled from zeta object rather than theme. This ensures consistency across different parts of the application where Zeta is used. Also changed theme.colorScheme.surface to colors.surfacePrimary for better readability, and alignment with use of zeta object.
- Add icon colors to color scheme
Extended the color scheme in colors.dart to include default, subtle, disabled, and inverse icon colors. These were added to ensure consistent icon colors across the application and support dark mode by allowing inverted color swatches.
- Refactor theme switch settings and add new features
Renamed 'theme_switch.dart' to 'theme_color_switch.dart' and added two new files 'theme_contrast_switch.dart' and 'theme_mode_switch.dart' in order to separate the theme settings logically into distinct features - Theme Color Switch, Theme Contrast Switch and Theme Mode Switch respectively. Also, the theme application feature has been refactored within 'widgets.dart' to use the newly created theme features instead of the old theme switch. This enhances modularity and the user's ability to switch theme settings easily.
- Update method naming for consistent architecture in text.dart
Changed the method name 'withColor' to 'themeWithColor' in text.dart for consistency with other part of the architecture and for better readability. This change supports the shift towards a consistently designed application architecture and helps developers easily decipher the role of the method in the code.
- Update color scheme mapping and library version in colors.dart and pubspec.lock
Refined the color mapping in ZetaColorScheme in colors.dart by replacing effectiveSurfaceTertiary with textDefault, enhancing the clarity of backdrop's color role. Concurrently, version of multiple dependencies in pubspec.lock are updated to benefit from recent fixes and improvements in those libraries.
- Change
Color
toZetaColorSwatch
in theme files
Adjusted the class references in colors.dart from Color
to ZetaColorSwatch
to provide a more consistent color swatch across the app. The swatch allows for more flexibility in using color variations. Adjustments were also made in color_scheme.dart and color_swatch.dart to include better explanatory messages and use standard dart documentation format. Changes in custom_docs/components/Color/flutter.md were made to align with these updates.
- Enhance contrast and color handling in theme files
Removed 'flutter.md' as it is no longer required due to improvements made in contrast and color handling. For better accessibility support, 'contrast.dart' was refactored for better contrast handling and 'color_extensions.dart' now includes a mechanism to generate color swatch based on contrast ratio. Also, 'zeta.dart' was updated to adapt to the system's brightness providing better user experience. Overall, these adjustments aim to enhance accessibility and user experience, apart from simplifying the codebase.
- Add LICENSE-3RD-PARTY for third-party libraries
Introduced license details for third-party libraries used in the project. MIT license applies to 'tinycolor' and SIL Open Font License applies to 'IBMPlexSans'. This ensures proper acknowledgement and licensure compliance for used third-party resources.
- Set up with ZDS Analysis
0.0.1+12 - 2023-09-06 #
🔧 Chores #
6a2834e
- Tidy, reorganise and prepare repo (commit by @thelukewalton)
🛸 Other Changes #
-
feat(color): Adding color defs
-
feat(color): starting colorswatch util
-
bug(quality): updating lint rules
-
feat(color): adding widgetbook and tests
-
bug(platforms): adding windows into example
-
bug(type): Fixing reset height and tests failing (commit by @thelukewalton)
0.0.1+11 - 2023-08-09 #
✨ New Features #
-
193dc42
- Color (#21) (commit by @thelukewalton)a605819
- Adding color defs by @thelukewaltonf519cd8
- starting colorswatch util by @thelukewalton7445db0
- adding widgetbook and tests by @thelukewalton
🐛 Bug Fixes #
7529402
- bug(quality): updating lint rules by @thelukewalton3479adb
-bug(platforms): adding windows into example by @thelukewalton70a6144
- bug(type): Fixing reset height and tests failing by @thelukewalton
0.0.1+10 - 2023-07-11 #
✨ New Features #
546739c
- Dimensions by @thelukewalton
🐛 Bug Fixes #
-
6638e94
- bug: Refactoring tokens by @thelukewalton -
133a7ac
- bug: grid widgetbook hybrid example fix by @thelukewalton -
988964e
- removing unused dependency; by @thelukewalton
0.0.1+9 - 2023-03-28 #
✨ New Features #
ffb9596
- Typography (commit by @thelukewalton)
📝 Documentation Changes #
-
fb835a4
- Updated spacing and grid documentation and edge cases (PR #11 by @thelukewalton) -
2a1cea3
- Update typography documentation (PR #16 by @thelukewalton) -
709f771
- update docs (PR #17 by @thelukewalton) -
5a50e46
- Update README.md (#12), Update README.md, adding in tag to pass the CodeQL enablement exeption, - [automated commit] lint format and import sort. Co-authored-by: github-actions github-actions@github.com (commit by @knxp34)
🐛 Bug Fixes #
591b757
- inject token to action; (PR #15 by @thelukewalton)d591856
- test (commit by @thelukewalton)1dcbcae
- removing hardcoded shas (PR #19 by @thelukewalton)
0.0.1+6 - Spacing - 2023-03-06 #
0.0.1+5 - Grid - 2023-02-17 #
✨ New Features #
🐛 Bug Fixes #
-
f7a8d9a
- actions: Updated actions to push changelog to zeta. (PR #6 by @thelukewalton) - actions (commit by @thelukewalton) -
b0ad7f1
- No ticket/code examples (#5)- adding code example (commit by @thelukewalton) -
4acf3c1
- fix(actions) Fix action refs (PR #7 by @thelukewalton) -
83e073b
- fix(actions) another attempt at fixing actions checkout (PR #8 by @thelukewalton)
0.0.1+1 - Initial setup #
- Initial setup