werkbank 0.18.2
werkbank: ^0.18.2 copied to clipboard
A powerful tool that helps you develop, test, visualize, and organize your Flutter UI components.
0.18.2 #
- Add "Side by Side" semantics mode to semantics inspector.
- In this mode, the normal use case view is shown on one side and its semantics visualization on the other side.
- This allows you to interact with the use case as well as select semantics nodes at the same time. In contrast the "Inspection" and "Overlay" modes allow you to only do one.
- You can switch between a vertical and horizontal split.
0.18.1+1 #
- Limit
slangversion to<4.11.0because of breaking change made without raising the major version.
0.18.1 #
- Add support for flutter 3.38.x
0.18.0+1 #
- Limit
slangversion to<4.11.0because of breaking change made without raising the major version.
0.18.0 #
- Add new required
themeBrightnessBuilderparameter toAppConfig()andAppConfig.widget()constructors. (BREAKING CHANGE)AppConfig.material()andAppConfig.cupertino()are not affected.
- Improve
colorsUseCaseBuilder,textStylesUseCaseBuilderandiconsUseCaseBuilder.- They now adapt to the brightness of the use case theme.
- The design has been improved.
colorsUseCaseBuildernow shows a checkerboard pattern behind transparent colors.- Add some more parameters for customizability.
textStylesUseCaseBuildernow shows properties likefontSize,fontWeightandletterSpacing.
- Make some changes to accessors
- Rename
UseCaseAccessorMixintoUseCaseAccessorin order to be more consistent with other accessor mixins. (BREAKING CHANGE) AddonAccessor.addonsOf(context)has been moved toMaybeWerkbankAppAccessorandWerkbankAppOnlyAccessorand was renamed toaddonSpecificationsOf(context). (BREAKING CHANGE)- The
AddonDescriptionAccessorno longer has access to methods in theWerkbankAppOnlyAccessor. (BREAKING CHANGE) - Add new
AddonAccessor.addonsOf(context)that returns a list of active addons. (BREAKING CHANGE) - Add
AddonAccessor.addonByIdOf(context, addonId)to get an addon by its id. - Add
AddonAccessor.isAddonActive(context, addonId)to check if an addon is active.
- Rename
- Increase maximum
go_routerversion to 17.x.x. - Mark release as incompatible with Flutter 3.38.x due to breaking changes in Flutter.
- Add missing properties from
SemanticsNodeto the semantics inspector. These areindexInParent,tags,linkUrl,locale,validationResult,inputTypeandcontrolsNodes.
0.17.3 #
- When nodes of a tree in the UI become selected, their parents now expand, and they now scroll into view. This applies to:
- Use cases, components and folders in the navigation panel, when they are selected, for example via the overview.
- Semantics nodes in the semantics inspector, when they are selected, for example via inspection.
- The
WTreeViewcomponent, which now has support for this behavior.
- Add new IDE Live Templates/Snippets to the documentation.
- Add static key
UseCase.keythat can be used in widget tests to verify that the use case widget has been built.
0.17.2+1 #
- Fix that switching between the use case thumbnails in a component overview tile was not resetting the state of the use case.
0.17.2 #
- Components now combine their use cases into a single tile in a folder or root overview.
- The tile will periodically switch between the thumbnails of the contained use cases.
- Dragging on the pagination dots will switch the thumbnails manually.
- When overviewing a component itself, the use cases are still shown separately.
0.17.1 #
- Improve semantics inspector
- Fix that merged semantics nodes were shown by default.
- Make showing merged nodes an option. (Hidden by default.)
- Make showing hidden nodes an option. (Shown by default.)
- They are always shown in the tree though, because hierarchy information would be lost otherwise.
- Merged and hidden nodes are now clearly marked as such in the tree.
- Add the properties
isMergedIntoParent,mergeAllDescendantsIntoThisNodeandareUserActionsBlockedto the "Active Semantics Node" section. - Make background of semantics node visualization boxes slightly more transparent.
- Add option to change the inspection scope. The choices are:
- "Use Case" (new default)
- Only the semantics of the use case itself is shown.
- "App" (previous implicit behavior)
- The semantics of the whole use case-app (so the app as defined by the
AppConfig, not the wholeWerkbankApp) is shown. - This scope allows you to see the semantics of routes or other overlays introduced by the use case.
- However, it usually shows two additional semantics nodes as parents of your use case semantics that are introduced by the app and routing. Most of the time these nodes are not interesting.
- The semantics of the whole use case-app (so the app as defined by the
- "Use Case" (new default)
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
