Skip to main content

Variations

Variation 1

Preview

Big Fact Variation 1

KeynoteBigFactSlideVariants.variantOne(
titleText: '100%',
subTitleText: 'Fact information',
gradient: KeynoteGradients.quoteGradient,
)

Constructor

  KeynoteBigFactSlide variantOne({
required String titleText,
required String subTitleText,
required Gradient titleGradient,
TextStyle? titleStyle,
TextStyle? subtitleStyle,
Alignment? titleAlignment,
Alignment? subtitleAlignment,
TextAlign? titleTextAlignment,
TextAlign? subtitleTextAlignment,
Widget? titleSubTitleSpacing,
EdgeInsets? padding,
int? headerFlexUnits,
int? bodyFlexUnits,
Widget? titleWidgetReplacement,
Widget? subtitleWidgetReplacement,
int? animationIndex,
AnimationArguments? animationArguments,
}) {
return KeynoteBigFactSlide(
titleText: titleText,
subTitleText: subTitleText,
titleGradient: titleGradient,
titleStyle: titleStyle ?? KeynoteTextstyles.fact(),
subtitleStyle: subtitleStyle ?? KeynoteTextstyles.subtitle(),
titleAlignment: titleAlignment,
subtitleAlignment: subtitleAlignment,
titleTextAlignment: titleTextAlignment,
subtitleTextAlignment: subtitleTextAlignment,
titleSubTitleSpacing: titleSubTitleSpacing,
padding: padding,
headerFlexUnits: headerFlexUnits,
bodyFlexUnits: bodyFlexUnits,
titleWidgetReplacement: titleWidgetReplacement,
subtitleWidgetReplacement: subtitleWidgetReplacement,
animationIndex: animationIndex,
animationArguments: animationArguments,
);
}

Variation 2

Preview

Big Fact Variation 2

KeynoteBigFactSlideVariants.variantTwo(
titleText: '100%',
subTitleText: 'Fact information',
)

Constructor

  KeynoteBigFactSlide variantTwo({
required String titleText,
required String subTitleText,
TextStyle? titleStyle,
TextStyle? subtitleStyle,
Alignment? titleAlignment,
Alignment? subtitleAlignment,
TextAlign? titleTextAlignment,
TextAlign? subtitleTextAlignment,
Widget? titleSubTitleSpacing,
EdgeInsets? padding,
int? headerFlexUnits,
int? bodyFlexUnits,
Widget? titleWidgetReplacement,
Widget? subtitleWidgetReplacement,
int? animationIndex,
AnimationArguments? animationArguments,
}) {
return KeynoteBigFactSlide(
titleText: titleText,
subTitleText: subTitleText,
titleStyle: titleStyle ?? KeynoteTextstyles.fact(variant: Variants.two),
subtitleStyle:
subtitleStyle ?? KeynoteTextstyles.subtitle(variant: Variants.two),
titleAlignment: titleAlignment,
subtitleAlignment: subtitleAlignment,
titleTextAlignment: titleTextAlignment,
subtitleTextAlignment: subtitleTextAlignment,
titleSubTitleSpacing: titleSubTitleSpacing,
padding: padding,
headerFlexUnits: headerFlexUnits,
bodyFlexUnits: bodyFlexUnits,
titleWidgetReplacement: titleWidgetReplacement,
subtitleWidgetReplacement: subtitleWidgetReplacement,
animationIndex: animationIndex,
animationArguments: animationArguments,
);
}