GFAlert class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GFAlert
Constructors
-
GFAlert({Key? key, String? title, TextStyle titleTextStyle = const TextStyle(color: Colors.black87, fontSize: 20, fontWeight: FontWeight.w700), Alignment? titleAlignment, String? subtitle, TextStyle subtitleTextStyle = const TextStyle(color: Colors.black87, fontSize: 17, fontWeight: FontWeight.w400), Alignment? subtitleAlignment, Widget? bottomBar, Alignment? bottomBarAlignment, Widget? content, Alignment? contentAlignment, Color? backgroundColor, double? width, GFAlertType type = GFAlertType.rounded, Alignment? alignment, EdgeInsetsGeometry? padding, List<
BoxShadow> ? shadow, double? borderRadius, String? okButtonText, String? cancelButtonText, TextStyle okButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.lightBlue), TextStyle cancelButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.lightBlue), void onTapCancel()?, void onTapOk()?}) -
Alert has to be wrap inside the body like GFFloatingWidget. See GFFloatingWidget
const
Properties
- alignment → Alignment?
-
type of Alignment used to align the GFAlert
final
- backgroundColor → Color?
-
pass color of type Color or GFColors for background of GFAlert
final
- borderRadius → double?
-
type of double to give circular radius to GFAlert
final
- bottomBar → Widget?
-
bottomBar of type Widget can be used to show a widget at the bottom of subtitle.
final
- bottomBarAlignment → Alignment?
-
type of Alignment used to align the bottom widget GFAlert
final
- cancelButtonText → String?
-
type of String used to replace the text of cancel button in GFAlert
final
- cancelButtonTextStyle → TextStyle
-
type of TextStyle to change the style of the cancel button text
final
- content → Widget?
-
ContentChild of type Widget can be used to show a widget with contents in the GFAlert
final
- contentAlignment → Alignment?
-
type of Alignment used to align the content widget GFAlert
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- okButtonText → String?
-
type of String used to replace the text of ok button in GFAlert
final
- okButtonTextStyle → TextStyle
-
type of TextStyle to change the style of the ok button text
final
- onTapCancel → void Function()?
-
type of Function used for tap on cancel button in GFAlert
final
- onTapOk → void Function()?
-
type of Function used for tap on ok button in GFAlert
final
- padding → EdgeInsetsGeometry?
-
type of EdgeInsetsGeometry to give padding inside GFAlert
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadow
→ List<
BoxShadow> ? -
type of List of type BoxShadow to give shadow to GFAlert
final
- subtitle → String?
-
title of type String used to describe the subtitle of the GFAlert
final
- subtitleAlignment → Alignment?
-
type of Alignment used to align the subtitle text inside the GFAlert
final
- subtitleTextStyle → TextStyle
-
type of TextStyle to change the style of the subtitle
final
- title → String?
-
title of type String used to describe the title of the GFAlert
final
- titleAlignment → Alignment?
-
type of Alignment used to align the title text inside the GFAlert
final
- titleTextStyle → TextStyle
-
type of TextStyle to change the style of the title
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}) → 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