SmartStateOverlayConfig constructor
const
SmartStateOverlayConfig({
- List<
SmartState> enabledStates = const [SmartState.loading, SmartState.error, SmartState.success], - bool isDismissible = false,
- bool barrierDismissible = false,
- Color? barrierColor,
- Alignment alignment = Alignment.center,
- OverlayStateConfig loadingConfig = const OverlayStateConfig(),
- OverlayStateConfig errorConfig = const OverlayStateConfig(backgroundColor: Colors.white, iconColor: Colors.red, textColor: Colors.black87),
- OverlayStateConfig successConfig = const OverlayStateConfig(backgroundColor: Colors.white, iconColor: Colors.green, textColor: Colors.black87),
- OverlayStateConfig emptyConfig = const OverlayStateConfig(),
- OverlayStateConfig offlineConfig = const OverlayStateConfig(backgroundColor: Colors.white, iconColor: Colors.orange, textColor: Colors.black87),
Implementation
const SmartStateOverlayConfig({
this.enabledStates = const [
SmartState.loading,
SmartState.error,
SmartState.success
],
this.isDismissible = false,
this.barrierDismissible = false,
this.barrierColor,
this.alignment = Alignment.center,
this.loadingConfig = const OverlayStateConfig(),
this.errorConfig = const OverlayStateConfig(
backgroundColor: Colors.white,
iconColor: Colors.red,
textColor: Colors.black87,
),
this.successConfig = const OverlayStateConfig(
backgroundColor: Colors.white,
iconColor: Colors.green,
textColor: Colors.black87,
),
this.emptyConfig = const OverlayStateConfig(),
this.offlineConfig = const OverlayStateConfig(
backgroundColor: Colors.white,
iconColor: Colors.orange,
textColor: Colors.black87,
),
});