InfoDialog class
Define InfoDialog
Usage:
InfoDialog(
tittle: 'tittle',
content: 'Your message',
)
See also:
dialogHeight height of dialog default is 300
dialogWidth width of dialog
tittle
, content display title and content of dialog
tittleStyle
, contentStyle TextStyle
buttonName you can custom button name: ex: OK, cancel
with custom size, style, etc.. via buttonWidth, buttonHeight, buttonStyle
onPressButton handle func onPress
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- InfoDialog
Constructors
- InfoDialog({Key? key, double? dialogWidth, double? dialogHeight, double? topDialogWidth, double? topDialogHeight, Color? topDialogColor, double? centerDialogWidth, double? centerDialogHeight, String? content, TextStyle? contentStyle, String? title, TextStyle? titleStyle, double? buttonWidth, double? buttonHeight, Color? buttonColor, String? buttonName, TextStyle? buttonStyle, Function? onPressButton})
-
const
Properties
-
Height of button
final
-
Width of button
final
-
Button color:
final
-
Button name
final
-
Content of dialog as TextStyle
final
- centerDialogHeight → double?
-
Set center dialog width
final
- centerDialogWidth → double?
-
Style of title as TextStyle
final
- content → String?
-
Set center dialog height
final
- contentStyle → TextStyle?
-
Content of dialog
final
- dialogHeight → double?
-
Set width of dialog
final
- dialogWidth → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onPressButton → Function?
-
Button style as TextStyle
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
Set top dialog color
final
- titleStyle → TextStyle?
-
Title of dialog
final
- topDialogColor → Color?
-
Set height of top dialog
final
- topDialogHeight → double?
-
Set width of top dialog
final
- topDialogWidth → double?
-
Set height of dialog
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _InfoDialogState -
Function when press button
override
-
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