CommonAlertDialog class

Common Alert Dialog to show successful messages and error messages.

Inheritance

Constructors

CommonAlertDialog(String titleString, {Key? key, Icon? icon, Function? onPressed, Widget? content, TextStyle? textStyle, ShapeBorder? shape, double? elevation, bool error = false, bool? showOkButton})
const

Properties

content Widget?
This will be showed below the titleString and icon.
final
elevation double?
If it is null, it's default value will be CommonAlertDialogThemeData.elevation, if it is null, then it will be 10.
final
error bool
If true, default icon changes to Icons.block with color, Colors.red.
final
hashCode int
The hash code for this object.
no setterinherited
icon Icon?
If this is null, then if error is false, then default value is CommonAlertDialogThemeData.successfulIcon Data and Color, if it is null the default value is Icons.check_circle_outline, with color, Colors.lightGreen, while in case error is true, default value is CommonAlertDialogThemeData.errorIcon Data and Color, if it is null the default value is Icons.block with color, Colors.red.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed Function?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
If this is null, then the default value will be CommonAlertDialogThemeData.shape, if it is also null, then it will be:-
final
showOkButton bool?
If it is null, it's default value will be CommonAlertDialogThemeData.showOkButton, if it is null, default value will be true.
final
textStyle TextStyle?
TextStyle of the titleString displayed, with the icon on the dialog.
final
titleString String
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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