GFAlert class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GFAlert
Constructors
- GFAlert.new({Key? key, String? content, String? title, Widget? child, Color? backgroundColor, double? width, GFAlertType type = GFAlertType.basic, Alignment? alignment, Widget? contentChild, Widget? bottombar, TextStyle contentTextStyle = const TextStyle(color: Colors.black87), TextStyle titleTextStyle = const TextStyle(color: Colors.black87, fontSize: 17, fontWeight: FontWeight.w500)})
-
Alert has to be wrap inside the body like GFFloatingWidget. See GFFloatingWidget
const
Properties
- alignment → Alignment?
-
type of Alignment used to align the text inside the GFAlert
final
- backgroundColor → Color?
-
pass color of type Color or GFColors for background of GFAlert
final
- bottombar → Widget?
-
type of Widget used for the buttons ie, OK, Cancel for the action in GFAlert
final
- child → Widget?
-
child of type Widgetis alternative to title key. title will get priority over child
final
- content → String?
-
title of type String used to describe the content of the GFAlert
final
- contentChild → Widget?
-
child of type Widgetis alternative to title key. title will get priority over contentchild
final
- contentTextStyle → TextStyle
-
type of TextStyle to change the style of the content not for the contentchild
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
title of type String used to describe the title of the GFAlert
final
- titleTextStyle → TextStyle
-
type of TextStyle to change the style of the title not for the child
final
- type → GFAlertType
-
type of GFAlertType which takes the type ie, basic, rounded and fullWidth for the GFAlert
final
- width → double?
-
width of type double used to control the width of the GFAlert
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _GFAlertState -
Creates the mutable state for this widget at a given location in the tree.
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, int wrapWidth = 65}) → 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