PlaceholderSetting constructor
const
PlaceholderSetting({
- bool? useAnimatedSwitcher,
- Duration? switchDuration,
- Duration? switchReverseDuration,
- Curve? switchInCurve,
- Curve? switchOutCurve,
- AnimatedSwitcherTransitionBuilder? switchTransitionBuilder,
- AnimatedSwitcherLayoutBuilder? switchLayoutBuilder,
- String? loadingText,
- String? nothingText,
- String? nothingRetryText,
- String? unknownErrorText,
- String? errorRetryText,
- IconData? nothingIcon,
- IconData? errorIcon,
- EdgeInsets? textPadding,
- EdgeInsets? iconPadding,
- EdgeInsets? buttonPadding,
- EdgeInsets? progressPadding,
- EdgeInsets? wholePaddingUnlessNormal,
- TextStyle? textStyle,
- int? textMaxLines,
- TextOverflow? textOverflow,
- TextStyle? buttonTextStyle,
- ButtonStyle? buttonStyle,
- double? iconSize,
- Color? iconColor,
- double? progressSize,
- double? progressStrokeWidth,
- bool? showLoadingProgress,
- bool? showLoadingText,
- bool? showNothingIcon,
- bool? showNothingText,
- bool? showNothingRetry,
- bool? showErrorIcon,
- bool? showErrorText,
- bool? showErrorRetry,
- PlaceholderWidgetBuilder? customLoadingProgressBuilder,
- PlaceholderWidgetBuilder? customLoadingTextBuilder,
- PlaceholderWidgetBuilder? customNothingIconBuilder,
- PlaceholderWidgetBuilder? customNothingTextBuilder,
- PlaceholderVoidCallbackWidgetBuilder? customNothingRetryBuilder,
- PlaceholderWidgetBuilder? customErrorIconBuilder,
- PlaceholderWidgetBuilder? customErrorTextBuilder,
- PlaceholderVoidCallbackWidgetBuilder? customErrorRetryBuilder,
- PlaceholderWidgetBuilderWidgetBuilder? customNormalStateBuilder,
- PlaceholderWidgetBuilderWidgetBuilder? customSwitcherBuilder,
Implementation
const PlaceholderSetting({
// animation
this.useAnimatedSwitcher,
this.switchDuration,
this.switchReverseDuration,
this.switchInCurve,
this.switchOutCurve,
this.switchTransitionBuilder,
this.switchLayoutBuilder,
// text
this.loadingText,
this.nothingText,
this.nothingRetryText,
this.unknownErrorText,
this.errorRetryText,
// icon
this.nothingIcon,
this.errorIcon,
// padding
this.textPadding,
this.iconPadding,
this.buttonPadding,
this.progressPadding,
this.wholePaddingUnlessNormal,
// style
this.textStyle,
this.textMaxLines,
this.textOverflow,
this.buttonTextStyle,
this.buttonStyle,
this.iconSize,
this.iconColor,
this.progressSize,
this.progressStrokeWidth,
// show xxx
this.showLoadingProgress,
this.showLoadingText,
this.showNothingIcon,
this.showNothingText,
this.showNothingRetry,
this.showErrorIcon,
this.showErrorText,
this.showErrorRetry,
// custom builder
this.customLoadingProgressBuilder,
this.customLoadingTextBuilder,
this.customNothingIconBuilder,
this.customNothingTextBuilder,
this.customNothingRetryBuilder,
this.customErrorIconBuilder,
this.customErrorTextBuilder,
this.customErrorRetryBuilder,
this.customNormalStateBuilder,
this.customSwitcherBuilder,
});