variantTwo static method

KeynoteBigFactSlide variantTwo({
  1. required String titleText,
  2. required String subTitleText,
  3. TextStyle? titleStyle,
  4. TextStyle? subtitleStyle,
  5. Alignment? titleAlignment,
  6. Alignment? subtitleAlignment,
  7. TextAlign? titleTextAlignment,
  8. TextAlign? subtitleTextAlignment,
  9. Widget? titleSubTitleSpacing,
  10. EdgeInsets? padding,
  11. int? headerFlexUnits,
  12. int? bodyFlexUnits,
  13. Widget? titleWidgetReplacement,
  14. Widget? subtitleWidgetReplacement,
  15. int? animationIndex,
  16. AnimationArguments? animationArguments,
})

Creates a variant of the KeynoteBigFactSlide widget without a gradient background.

titleText is the text for the slide title.

subTitleText is the text for the slide subtitle.

titleStyle is the style for the slide title.

subtitleStyle is the style for the slide subtitle.

titleAlignment is the alignment for the slide title widget.

subtitleAlignment is the alignment for the slide subtitle widget.

titleTextAlignment is the alignment for the slide title text.

subtitleTextAlignment is the alignment for the slide subtitle text.

titleSubTitleSpacing is the widget to provide spacing between the title and subtitle.

padding is the padding for the slide.

headerFlexUnits is the flex units for the header section.

bodyFlexUnits is the flex units for the body section.

titleWidgetReplacement is the replacement widget for the slide title.

subtitleWidgetReplacement is the replacement widget for the slide subtitle.

animationIndex is the index at which the animation should start.

animationArguments is the animation arguments for the slide animation.

Implementation

static 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,
  );
}