wizard_builder 1.2.0 copy "wizard_builder: ^1.2.0" to clipboard
wizard_builder: ^1.2.0 copied to clipboard

outdated

A wizard builder widget to easily create a wizard (with nested navigation).

Wizard Builder Widget #

A Flutter widget for building a wizards UI.

Usage #

  • Create a wizard page by extending a widget from a WizardPage and WizardState. These exposes a onPush(), onPop() and onCloseWizard() method, which can be used in the wizard page.
  • Next create a WizardBuilder
  • Inject a navigation key
  • Inject the list of wizard pages
  • The WizardBuilder wil navigate to the firt wizard page in the list.
  • When calling onPush() on the last wizard page the WizardBuilder wil close.
final navigatorKey1 = GlobalKey<NavigatorState>();
final navigatorKey2 = GlobalKey<NavigatorState>();
final navigatorKey3 = GlobalKey<NavigatorState>();

WizardBuilder(
  navigatorKey: navigatorKey1,
  pages: [
    PageOne(),
    WizardBuilder(
      navigatorKey: navigatorKey2,
      pages: [
        PageTwo(),
        WizardBuilder(
          navigatorKey: navigatorKey3,
          pages: [
            PageTwo(closeOnNavigate: true),
            PageThree(),
          ],
        ),
        PageThree(closeOnNavigate: true)
      ],
    ),
    PageFour(),
  ],
);

TODO #

  • option for showing back/close button on first page
  • correct android onbackpress button behavior
  • nested pages (or by [][] or by adding another Widgetbuilder)
  • exposing page transistions
  • ability to pass arguments/parameters to a page from the nextPage()
  • create unit tests

Issues #

Please file any issues, bugs or feature requests as an issue on our GitHub page. Commercial support is available, you can contact us at bart.kuipers@baku-apps.com.

Author #

This WizardBuilder widget for Flutter is developed by BaKu-apps.

8
likes
0
pub points
28%
popularity

Publisher

unverified uploader

A wizard builder widget to easily create a wizard (with nested navigation).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on wizard_builder