ToastThemeData constructor
const
ToastThemeData({
- TextStyle? textStyle,
- Color? backgroundColor,
- Color? foregroundColor,
- EdgeInsetsGeometry? padding,
- BorderRadius? borderRadius,
- VisualDensity? visualDensity,
- TextAlign? textAlign,
- Color? maskColor,
- double? verticalGap,
- double? indicatorSize,
- double? indicatorWidth,
- Widget? indicator,
- Widget? successIcon,
- Widget? errorIcon,
- Widget? informationIcon,
- ToastPosition? position,
- Duration? animationDuration,
- Duration? displayDuration,
- bool? dismissOnTap,
- bool? isInteractive,
- ToastAnimationBuilder? animationBuilder,
创建可用于 ThemeData.extension<ToastThemeData>() 的主题。
Implementation
const ToastThemeData({
this.textStyle,
this.backgroundColor,
this.foregroundColor,
this.padding,
this.borderRadius,
this.visualDensity,
this.textAlign,
this.maskColor,
this.verticalGap,
this.indicatorSize,
this.indicatorWidth,
this.indicator,
this.successIcon,
this.errorIcon,
this.informationIcon,
this.position,
this.animationDuration,
this.displayDuration,
this.dismissOnTap,
this.isInteractive,
this.animationBuilder,
});