whats_new 0.0.4 copy "whats_new: ^0.0.4" to clipboard
whats_new: ^0.0.4 copied to clipboard

outdated

Beautiful way to showcase new features of your app.

whats_new #

Beautiful way to showcase new features of your app.

pub package

Getting Started #

Add the dependency to your pubspec.yaml

dependencies:
 whats_new: ^0.0.4

And run flutter packages upgrade

How to use #

Option 1 #

Use WhatsNew.show(BuildContext, WhatsNewContent).

// Only show partial configurations, please refer WhatsNewContent to view more configurations
WhatsNew.show(context, WhatsNewContent(
      backgroundColor: Colors.white,
      title: 'What\'s New',
      titleColor: Colors.black,
      primaryButtonText: 'Let\'s Go',
      primaryButtonTextColor: Colors.white,
      primaryButtonBackgroundColor: Colors.red,
      secondaryButtonText: 'Learn more',
      secondaryButtonTextColor: Colors.red,
      transitionDuration: Duration(milliseconds: 350),
      featureItemTransitionDuration: Duration(milliseconds: 350),
      hideSecondaryButton: false,
      dismissible: false,
      callback: this,
      features: [
        Feature(
            icon: 'assets/camera-iris.png',
            iconColor: Colors.red,
            title: 'Title four',
            titleColor: Colors.black,
            description: 'Lorem ipsum dolor sit amet',
            descriptionColor: Colors.grey
        ),
        Feature(
            icon: 'assets/cellphone.png',
            iconColor: Colors.red,
            title: 'Title five',
            titleColor: Colors.black,
            description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
            descriptionColor: Colors.grey
        )
      ],
    ));

or

Option 2 #

Created your own WhatsNewContent and launch with your own Navigator.

var content = WhatsNewContent(...)

Navigator.of(context).push(WhatsNew(content));

Example #

Check out the example for more details.

Changelog #

See changelog.

Contributions #

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

6
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Beautiful way to showcase new features of your app.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on whats_new