FlareGiffDialog class
Widget that displays Giff Dialog with flare asset.
You need local Flare .flr
asset for this type of Giff Dialog.
Place the asset under /assets
directory in the project root.
Add the asset to pubspec.yaml
like so
assets:
- assets/my_awesome_flare.flr
Set FlareGiffDialog's flarePath prop to the asset path.
You also must specify the name of animation sequence to apply via flareAnimation
prop.
FlareGiffDialog(
title: Text('Example'),
description: Text('Dialog text'),
flarePath: 'assets/my_awesome_flare.flr',
flareAnimation: 'dancing',
...,
);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FlareGiffDialog
Constructors
- FlareGiffDialog({Key? key, required String flarePath, required String flareAnimation, required Text title, VoidCallback? onOkButtonPressed, BoxFit flareFit = BoxFit.cover, VoidCallback? onCancelButtonPressed, Text? description, bool onlyOkButton = false, bool onlyCancelButton = false, Text? buttonOkText, Text? buttonCancelText, Color? cardBackgroundColor, Color buttonOkColor = Colors.green, Color buttonCancelColor = Colors.grey, double cornerRadius = 8.0, double buttonRadius = 8.0, EntryAnimation entryAnimation = EntryAnimation.normal})
-
const
Properties
-
Color of Cancel button
final
-
Text for cancel button
final
-
Color of OK button.
final
-
Text for OK button.
final
-
Radius applied to the button corners.
final
- cardBackgroundColor → Color?
-
this props is not used at the moment.
final
- cornerRadius → double
-
Radius applied to the dialog box corners.
final
- description → Text?
-
Description text.
final
- entryAnimation → EntryAnimation
-
Defines how Giff Dialog will enter the screen.
final
- flareAnimation → String
-
Name of Flare animation to apply.
final
- flareFit → BoxFit
-
BoxFit sizing of the Flare asset.
final
- flarePath → String
-
Path to the Flare asset.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCancelButtonPressed → VoidCallback?
-
Callback function to be called on when Cancel button is pressed.
final
- onlyCancelButton → bool
-
Sets dialog to have only Cancel button.
final
- onlyOkButton → bool
-
Sets dialog to have only OK button.
final
- onOkButtonPressed → VoidCallback?
-
Callback function to be called on when OK button is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Text
-
Title text.
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