WhatsNewPage constructor
WhatsNewPage({
- required List<
Widget> features, - Widget featuresSeperator = const SizedBox(height: 25),
- Widget title = const Text("What's New"),
- EdgeInsets bodyPadding = _kOnboardingPagePadding,
- double titleTopIndent = _kTitleTopIndent,
- double titleToBodySpacing = _kTitleToBodySpacing,
- double bodyToBottomSpacing = 0,
- int titleFlex = 3,
- ScrollPhysics scrollPhysics = const BouncingScrollPhysics(),
- 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({
required this.features,
this.featuresSeperator = const SizedBox(height: 25),
this.title = const Text("What's New"),
this.bodyPadding = _kOnboardingPagePadding,
this.titleTopIndent = _kTitleTopIndent,
this.titleToBodySpacing = _kTitleToBodySpacing,
this.bodyToBottomSpacing = 0,
this.titleFlex = 3,
this.scrollPhysics = const BouncingScrollPhysics(),
super.key,
}) : assert(
features.isNotEmpty,
'Feature list must contain at least 1 widget.',
);