variantOne static method
- required String quoteText,
- required String attributionText,
- required Gradient quoteGradient,
- TextStyle? quoteStyle,
- TextStyle? attributionStyle,
- TextAlign? quoteTextAlignment,
- TextAlign? attributionTextAlignment,
- Alignment? quoteAlignment,
- Alignment? attributionAlignment,
- Widget? quoteAttributionSpacing,
- EdgeInsets? padding,
- int? headerFlexUnits,
- int? bodyFlexUnits,
- Widget? quoteWidgetReplacement,
- Widget? attributionWidgetReplacement,
- int? animationIndex,
- AnimationArguments? animationArguments,
Creates a variant of the KeynoteQuoteSlide with specific configurations.
quoteText
is the text of the quote.
attributionText
is the text of the attribution.
quoteGradient
is the gradient to apply to the quote.
quoteStyle
is the style for the quote text.
attributionStyle
is the style for the attribution text.
quoteTextAlignment
is the alignment for the quote text.
attributionTextAlignment
is the alignment for the attribution text.
quoteAlignment
is the alignment for the quote text widget.
attributionAlignment
is the alignment for the attribution text widget.
quoteAttributionSpacing
is the widget to provide spacing
between the quote and attribution.
padding
is the padding around the slide.
headerFlexUnits
is the flex units for the header section.
bodyFlexUnits
is the flex units for the body section.
quoteWidgetReplacement
is the replacement widget for the quote text.
attributionWidgetReplacement
is the replacement widget
for the attribution text.
animationIndex
is the index used for controlling
the animation of the slide.
animationArguments
is the animation arguments for animating the slide.
Implementation
static KeynoteQuoteSlide variantOne({
required String quoteText,
required String attributionText,
required Gradient quoteGradient,
TextStyle? quoteStyle,
TextStyle? attributionStyle,
TextAlign? quoteTextAlignment,
TextAlign? attributionTextAlignment,
Alignment? quoteAlignment,
Alignment? attributionAlignment,
Widget? quoteAttributionSpacing,
EdgeInsets? padding,
int? headerFlexUnits,
int? bodyFlexUnits,
Widget? quoteWidgetReplacement,
Widget? attributionWidgetReplacement,
int? animationIndex,
AnimationArguments? animationArguments,
}) {
return KeynoteQuoteSlide(
quoteText: quoteText,
attributionText: attributionText,
quoteGradient: quoteGradient,
quoteStyle: quoteStyle ?? KeynoteTextstyles.quote(),
attributionStyle: attributionStyle ?? KeynoteTextstyles.attribution(),
quoteTextAlignment: quoteTextAlignment,
attributionTextAlignment: attributionTextAlignment,
quoteAlignment: quoteAlignment ?? Alignment.bottomCenter,
attributionAlignment: attributionAlignment ?? Alignment.bottomCenter,
quoteAttributionSpacing: quoteAttributionSpacing,
padding: padding,
headerFlexUnits: headerFlexUnits,
bodyFlexUnits: bodyFlexUnits,
quoteWidgetReplacement: quoteWidgetReplacement,
attributionWidgetReplacement: attributionWidgetReplacement,
animationIndex: animationIndex,
animationArguments: animationArguments,
);
}