widgetbook_generator 3.9.1 copy "widgetbook_generator: ^3.9.1" to clipboard
widgetbook_generator: ^3.9.1 copied to clipboard

A package to automate setup and maintenance of the widgetbook package by using code generation.

3.9.1 #

  • FIX: Escape path resolution if pubspec.lock is not found. This bug was affecting running the generator in Pub Workspaces. (#1327)
  • REFACTOR: Send an owner URL for telemetry. (#1324)

3.9.0 #

  • BREAKING: Set minimum SDK version to 3.0.0. (#1243)
  • BREAKING: Drop analyzer 5.x support. (#1243)
  • FEAT: Support Multi Snapshot for addons. For more information, check our docs. (#1239)
  • REFACTOR: Remove widgetbook dependency. (#1242)

3.8.0 #

  • FEAT: Add new builder option named nav_path_mode, that allows using the navigation path of the use-case instead of the component. For more info, check out the customization docs. (#1188)
  • REFACTOR: Send a unique project identifier for telemetry. (#1189)

3.7.0 #

  • EXPERIMENTAL: Preserve nullability of generic/function parameters. (#1092)
  • EXPERIMENTAL: Allow key args. (#1094)
  • EXPERIMENTAL: Expose argsBuilder for non-custom stories. (#1095)

3.6.0 #

  • EXPERIMENTAL: Use params' default values for StoryArgs.fixed constructor. (#1074)
  • EXPERIMENTAL: Support EnumArg. (#1073)
  • EXPERIMENTAL: Support BuilderArg. (#1079)
  • EXPERIMENTAL: Support positional Arg.value parameter. (#1077)
  • EXPERIMENTAL: Set Arg.name via init instead of constructor. (#1078)
  • EXPERIMENTAL: Support custom args via MetaWithArgs. (#1080)
  • EXPERIMENTAL: Support LeafComponent. (#1083)
  • EXPERIMENTAL: Support optional parameters arg-generation. (#1084)

3.5.0 #

  • EXPERIMENTAL: Add setup to Story. (#1069)

3.4.0 #

3.3.0 #

  • BREAKING: Set minimum SDK version to 2.19.0. (#1030)
  • FEAT: Add designLink to WidgetbookUseCase. (#926 - by @Mastersam07)
  • FEAT: Support custom path for @UseCase. (#988 - by @geisterfurz007)
  • FEAT: Support WidgetbookLeafComponent navigation node for components with a single use-case. (#1015)

3.2.0 #

  • FEAT: Add telemetry which collects and reports anonymous usage information that helps us improve our package. (#893)
  • FIX: Sort generated nodes. (#871)
  • FIX: Apply imports prefixing. (#872)
  • FIX: Throw error when use-cases names conflict. (#877)

3.1.0 #

  • REFACTOR: Enforce widgetbook package minimum version (v3.2.0). (#842)
  • REFACTOR: Support analyzer v6.x. (#841)
  • FIX: Add type to directories list. (#836)
  • FIX: Resolve local packages paths. (#829)
  • FIX: Resolve "asset:" imports. (#819)
  • FIX: Remove unused imports. (#786)

3.0.0 #

Check out the migration guide for more information.

3.0.0-rc.2 #

  • BREAKING: Change generated extension from .g.dart to .directories.g.dart to avoid conflicting outputs with other generators. (#737)
  • BREAKING: Remove @App annotation's foldersExpanded and widgetsExpanded non-working parameters. (#735)
  • REFACTOR: Add meta comments to header. (#745)

3.0.0-rc.1 #

  • Check out the migration guide for more details.
  • FEAT: Add Dart 3 and Flutter 3.10 support. (#676)
  • BREAKING: Drop Flutter 2 support. (#676)
  • BREAKING: Remove code generation support for everything except @App and @UseCase that generate a list called directories. You should now configure Widgetbook's properties (i.e. addons, appBuilder, etc.) manually. (#663)
  • FIX: Remove <dynamic> from Generic Widgets names. (#700)
  • REFACTOR: Drop freezed dependency. (#666)

3.0.0-beta.11 #

  • REFACTOR: ♻️ removed package analysis_options files.
  • REFACTOR: ♻️ warnings.

3.0.0-beta.10 #

  • FIX: 🐛 expects data that does not exist. (6396e411)

3.0.0-beta.9 #

  • REFACTOR: ♻️ warnings. (8bf0b124)
  • REFACTOR: ♻️ settings. (254ebef6)
  • REFACTOR: ♻️ adjust generator to AddOn implemementation. (a91edbbf)
  • REFACTOR: ♻️ rename settings to setting for AddOns. (c88b7327)
  • REFACTOR: ♻️ remove resolvers. (59565b2a)
  • REFACTOR: adjusted code to match linter. (04dd9f1e)
  • FIX: 🐛 locales are not correctly generated. (dd2807d0)
  • FIX: imports of file not deterministic. (2ffb120d)
  • FIX: custom painter Widgets are incorrectly rendered. (965c355e)
  • FIX: recommited binary files to git. (70f38e8f)
  • FIX: added error when WidgetbookTheme is used on non-function code elements. (b7e65c24)
  • FEAT: ✨ add design link property. (7aa22dca)
  • FEAT: ✨ add CustomThemeAddon to generator. (ed199af2)
  • FEAT: ✨ add FrameAddon to generator. (c77fddeb)
  • FEAT: ✨ add LocalizationAddon to generator. (0df318ec)
  • FEAT: ✨ add TextScaleThemeAddon to generator. (563d6697)
  • FEAT: ✨ add MaterialThemeAddon to generator. (ba1b8f82)
  • FEAT: generator reads use-case definition. (84298485)

3.0.0-beta.8 #

  • REFACTOR: ♻️ warnings. (8bf0b124)
  • REFACTOR: ♻️ settings. (254ebef6)
  • REFACTOR: ♻️ adjust generator to AddOn implemementation. (a91edbbf)
  • REFACTOR: ♻️ rename settings to setting for AddOns. (c88b7327)
  • REFACTOR: ♻️ remove resolvers. (59565b2a)
  • REFACTOR: adjusted code to match linter. (04dd9f1e)
  • FIX: 🐛 locales are not correctly generated. (dd2807d0)
  • FIX: imports of file not deterministic. (2ffb120d)
  • FIX: custom painter Widgets are incorrectly rendered. (965c355e)
  • FIX: recommited binary files to git. (70f38e8f)
  • FIX: added error when WidgetbookTheme is used on non-function code elements. (b7e65c24)
  • FEAT: ✨ add design link property. (7aa22dca)
  • FEAT: ✨ add CustomThemeAddon to generator. (ed199af2)
  • FEAT: ✨ add FrameAddon to generator. (c77fddeb)
  • FEAT: ✨ add LocalizationAddon to generator. (0df318ec)
  • FEAT: ✨ add TextScaleThemeAddon to generator. (563d6697)
  • FEAT: ✨ add MaterialThemeAddon to generator. (ba1b8f82)
  • FEAT: generator reads use-case definition. (84298485)

3.0.0-beta.7 #

  • refactor: generator creating use case category as topmost NavigationTree element

3.0.0-beta.6 #

  • refactor: adjusted generator to the new NavigationTree

3.0.0-beta.5 #

  • refactor: adjusted generator to follow the new structure

3.0.0-beta.4 #

  • chore: bumped widgetbook_models version

3.0.0-beta.3 #

  • fix: locales are not correctly generated

3.0.0-beta.2 #

  • chore: bumped widgetbook_models version

3.0.0-beta.1 #

  • BREAKING: refactor: remove DeviceFrameBuilderResolver, LocalizationBuilderResolver, ScaffoldBuilderResolver, ThemeBuilderResolver, UseCaseBuilderResolver.
  • feat: add MaterialThemeAddon to generator
  • feat: add TextScaleAddon to generator
  • feat: add LocalizationAddon to generator
  • feat: add FrameAddon to generator
  • feat: add CustomThemeAddon to generator
  • feat: add designLink property to resolver

2.4.1 #

  • fix: imports of generated file not deterministic (#167)

2.4.0 #

  • feat: added builders to generate .json files for annotated code elements.

2.2.0 #

  • fix: Custom painter Widgets are incorrectly rendered (#191)
    • added support for WidgetbookAppBuilder and the appBuilder property.

2.1.2 #

2.1.1 #

  • fix: use widgetbook_models in version v0.0.7

2.1.0 #

  • chore: bumped freezed and freezed_annotation to v2.0.3 (#174)

2.0.1 #

  • refactor: renamed WidgetbookWidget to WidgetbookComponent
  • fix: Missing error when @WidgetbookTheme is used on properties (#130)

2.0.0 #

1.0.3 #

  • changed documentation to be consistent with the existing videos
  • changed generator to skip the src folder for packages
  • changed theme to default to ThemeMode.system instead of ThemeMode.dark

1.0.2 #

  • added videos to documentation

1.0.1 #

  • adjusted to renamed properties of widgetbook package
  • bumped widgetbook_annotation version

1.0.0 #

  • changed generator to create code for Widgetbook 1.0.0

0.0.6 #

  • refactored code
  • added tests

0.0.5 #

  • bumped version of widgetbook_annotation to 0.0.4

0.0.4 #

  • bumped version of widgetbook_models to 0.0.3

0.0.3 #

  • updated readme

0.0.2 #

  • fixed bug in the generator leading to invalid .dart file generation

0.0.1 #

Released first beta