ShirneDialogTheme class
Provide unified parameter settings for various dialogs
- Inheritance
-
- Object
- ThemeExtension<
ShirneDialogTheme> - ShirneDialogTheme
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? cancelButtonStyle, ModalStyle? modalStyle})
-
const
Properties
- alignBottom → Alignment
-
default bottom position for MyDialog.toast
final
- alignTop → Alignment
-
detault top position for MyDialog.toast
final
- cancelButtonStyle → 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
- modalStyle → ModalStyle?
-
final
- primaryButtonStyle → ButtonStyle?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- 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? cancelButtonStyle, ModalStyle? modalStyle}) → ThemeExtension< ShirneDialogTheme> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< ShirneDialogTheme> ? other, double t) → ThemeExtension<ShirneDialogTheme> -
Linearly interpolate with another ThemeExtension object.
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