variantOne static method

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

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

titleText is the text for the slide title.

subTitleText is the text for the slide subtitle.

titleGradient is the gradient used for the slide title background.

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. Only affects the text if no titleGradient is passed.

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