Logo-amall

Hey Guys do you have any migration docs from `2.4.*` -> `3.*.*`?

Last active a month ago

8 replies

6 views

  • AL

    Hey Guys do you have any migration docs from 2.4.* -> 3.*.*?

  • JE

    Hi, thanks for your interest in Widgetbook 3. We currently do not have migration docs but are actively working on the new release.
    If you are using widgetbook_generator, the generator in version 3.0.0-beta.x should take care of most of the migration work. If you are not using the generator, let me know and we can give you more details regarding what to do or when the docs will be available.

  • AL

    I'm not using the generator, would be nice to know how to do it manually

  • NO

    actually manually is generally not recommended anymore and is deprecated.

  • JE

    While we highly recommend using the generator, we still actively maintain the manual approach. The generator simplifies the setup of the manual approach and enables additional features which are not available otherwise.

  • JE

    The main changes of Widgetbook 3 are about how the properties are injected into widgetbook. Widgetbook 2 had the devices, frames, textscalefactors properties as well a variety of builder functions. Widgetbook 3 now supports customizable add-ons, e.g. a LocalizationAddon.

    The docs (and also migration docs) will be available at the beginning of January. Meanwhile you might want to take a look at this source code: https://github.com/widgetbook/widgetbook/blob/widgetbook-3/examples/widgetbookannotationexample/lib/app.widgetbook.dart
    to figure out how to setup the addons.
    This is generated code but will also work with the manual approach.

    Please note that some of the interfaces might change in the next weeks since we're getting closer to an official (beta) release.

    Hope that helps. If there are more questions, let me know 👍🏻

  • AL

    Didn't know that, will look into it, thanks

  • AL

    Thank you!

Last active a month ago

8 replies

6 views