ShirneDialogTheme class

Provide unified parameter settings for various dialogs

Inheritance

Constructors

ShirneDialogTheme({Alignment alignTop = const Alignment(0.0, -0.7), Alignment alignBottom = const Alignment(0.0, 0.7), Widget iconSuccess = const Icon(DialogIcons.checkmarkFill, color: Colors.green), Widget iconError = const Icon(DialogIcons.closeFill, color: Colors.red), Widget iconWarning = const Icon(DialogIcons.warningFill, color: Colors.deepOrangeAccent), Widget iconInfo = const Icon(DialogIcons.informationFill, color: Colors.blue), Widget iconHelp = const Icon(DialogIcons.helpFill, color: Colors.blue), ButtonStyle? primaryButtonStyle, ButtonStyle? defaultButtonStyle, ModalStyle? alertStyle, ModalStyle? modalStyle = const ModalStyle(), ToastStyle? toastStyle = const ToastStyle(), SnackStyle? snackStyle = const SnackStyle(), PopupStyle? popupStyle = const PopupStyle(), LoadingStyle? loadingStyle = const LoadingStyle()})
const

Properties

alertStyle ModalStyle?
final
alignBottom Alignment
default bottom position for MyDialog.toast
final
alignTop Alignment
detault top position for MyDialog.toast
final
defaultButtonStyle ButtonStyle?
final
hashCode int
The hash code for this object.
no setterinherited
iconError Widget
error icon for MyDialog.toast
final
iconHelp Widget
help icon for MyDialog.toast
final
iconInfo Widget
info icon for MyDialog.toast
final
iconSuccess Widget
success icon for MyDialog.toast
final
iconWarning Widget
warning icon for MyDialog.toast
final
loadingStyle LoadingStyle?
final
modalStyle ModalStyle?
final
popupStyle PopupStyle?
final
primaryButtonStyle ButtonStyle?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snackStyle SnackStyle?
final
toastStyle ToastStyle?
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({Alignment? alignTop, Alignment? alignBottom, Icon? iconSuccess, Icon? iconError, Icon? iconWarning, Icon? iconInfo, Icon? iconHelp, ButtonStyle? primaryButtonStyle, ButtonStyle? defaultButtonStyle, ModalStyle? alertStyle, ModalStyle? modalStyle, LoadingStyle? loadingStyle}) ThemeExtension<ShirneDialogTheme>
Creates a copy of this theme but with the given fields replaced with the new values.
override
lerp(covariant ThemeExtension<ShirneDialogTheme>? other, double t) ThemeExtension<ShirneDialogTheme>
lerp theme
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited