WhatsNewPage constructor

WhatsNewPage({
  1. Widget title = const Text("What's New"),
  2. required List<Widget> features,
  3. EdgeInsets bodyPadding = _kOnboardingPagePadding,
  4. double titleTopIndent = _kTitleTopIndent,
  5. double titleToBodySpacing = _kTitleToBodySpacing,
  6. double bodyToBottomSpacing = 0,
  7. int titleFlex = 3,
  8. Key? key,
})

Default constructor of the WhatsNewPage widget.

Represents an "What's new" screen in iOS 15 style. It is possible to restyle this widget to match older iOS versions.

Implementation

WhatsNewPage({
  this.title = const Text("What's New"),
  required this.features,
  this.bodyPadding = _kOnboardingPagePadding,
  this.titleTopIndent = _kTitleTopIndent,
  this.titleToBodySpacing = _kTitleToBodySpacing,
  this.bodyToBottomSpacing = 0,
  this.titleFlex = 3,
  super.key,
}) : assert(
        features.isNotEmpty,
        'Feature list must contain at least 1 widget.',
      );