werkbank 0.17.0
werkbank: ^0.17.0 copied to clipboard
A powerful tool that helps you develop, test, visualize, and organize your Flutter UI components.
0.17.0 #
- Add
StateKeepingAddonto keep states in the use case.- The feature is similar to knobs, just without controls in the UI and with a support for a wider range of types.
- Immutable state, like primitive values or data classes, can be added by calling
c.states.immutable(...). - Mutable state, like controllers, can be added by calling
c.states.mutable(...). - Read the documentation topic at https://pub.dev/documentation/werkbank/latest/topics/Keeping%20State-topic.html
- Add "Writing Use Cases" documentation topic that provides an overview of techniques you can use to customize your use cases.
- Update to Flutter 3.35.x. (BREAKING CHANGE)
- Since we now use the new APIs, you will need to update your Flutter SDK to at least 3.35.0.
- Make changes to
BackgroundOptionconstructors to be more consistent withc.background.<...>functions in theBackgroundComposer.- The unnamed
BackgroundOption(...)constructor is nowBackgroundOption.widget(...). (BREAKING CHANGE) - Changed
BackgroundOption.color(...)constructor to allow specifying a color directly. (BREAKING CHANGE) - The old
BackgroundOption.color(...)constructor is nowBackgroundOption.colorBuilder(...). (BREAKING CHANGE) - The
BackgroundOption.builder(...)constructor is nowBackgroundOption.widgetBuilder(...). (BREAKING CHANGE) - Some parameter names have also been renamed.
- The unnamed
- Fix merging behavior of tags.
- Navigating back to home using "ESC" or the top-left project info area no longer clears the search text field
- Fix that Markdown link did not work in some places such as in reports.
- Remove some things related to knobs that were deprecated in 0.16.1. (BREAKING CHANGE)
- Fix that the semantics of backgrounds were not excluded. (For example the checkered background was showing up as an image in the semantics inspector.)
0.16.2 #
- Increase maximum
go_routerversion to 16.x.x and lower minimum version to 13.1.0. This should lower the risk of dependency conflicts.
0.16.1 #
- Added a
Werkbank Systemtheme, which will always match your system. It's also default now. - Add a "Knobs" documentation topic which explains how to create your own knobs.
- Deprecate
listknob. UsecustomDropdowninstead. - Rename
valueFormatterparameters indoubleSliderandintSliderknobs tovalueLabel. The old parameter names are still available but deprecated. - Add
customDropdownknob.- Compared to
list, some parameters were changed to be more consistent with other knobs.
- Compared to
- Add new knobs with generic return types that allow you to create custom knobs with little effort:
c.knobs.customField<T>(...)andc.knobs.customFieldMultiLine<T>(...)(for custom text field controlled knobs)c.knobs.customSlider<T>(...)(for custom slider controlled knobs)c.knobs.customSwitch<T>(...)(for custom switch controlled knobs)- And the corresponding nullable variants.
- Add
intFieldanddoubleFieldknobs. - Add
falseLabelandtrueLabelparameters toc.knobs.boolean(...)to allow customizing the labels of the switch. - Rename
NullableKnobstoNullableKnobsComposer. The old type is still available but deprecated. - Improve code documentation of knobs.
0.16.0 #
- Add
c.background.colorBuilder(...)andc.background.widgetBuilder(...)to allow easier use of theme colors in backgrounds. - Fix that pointer could interact with use case while trying to change constraints.
- Make small changes to the tree UI to make it easier to overview the items and find the selected item.
- Change icons of use cases and components.
- Add
WerkbankLogowidget. - Rename
WerkbankSectionstoWerkbankRoot. (BREAKING CHANGE)- This also means that the
sectionsparameter ofWerkbankApphas been renamed toroot.
- This also means that the
- Rename
UseCaseControlSectiontoConfigureControlSectionandInfoControlSectiontoInspectControlSection. (BREAKING CHANGE)- This change should only affect custom addon authors.
- The tabs had been renamed from "USE CASE" to "CONFIGURE" and from "INFO" to "INSPECT" some time ago. However, these classes were missed.
- Rename
UseCaseMetadataBuildertoUseCaseParentBuilder. (BREAKING CHANGE) - Extend
Report's to be collapsible when enabled; this is now used for shortcuts on the homepage.
0.15.1 #
- Make some improvements to use case descriptions
- Rename the "About" section for descriptions to "Description".
- Calling
c.description(...)multiple times in the same node will now merge the descriptions instead of always overwriting them.- How the descriptions are merged can be controlled by the new
mergeStrategyparameter.
- How the descriptions are merged can be controlled by the new
- Added
forUseCaseparameter forc.description(...)to specify whether the description is for the use case or the current node. - The name of a
WerkbankFolderorWerkbankComponentis now displayed above its description.
- Fix that semantics inspector in "Inspection" mode would not allow to select semantic boxes in the main view on web.
- Add custom semantics actions to semantics inspector.
- Add advanced search features. TL;DR:
fuzzy text,<field>:fuzzy text,"precise text",<field>:"precise text" - Add ability to check if an addon is active using the
UseCaseComposerby doingc.isAddonActive(SomeAddon.addonId). - Replace a few dependencies and fix lints to make pub.dev happy.
0.15.0 #
- Initial release