EasyDialog class abstract base Getting started Dialogs
Base dialog class.
This class is used as a base class.
It is useful when there is a need to describe a dialog, its properties, and behaviors.
- Mixed-in types
- Implementers
- Available extensions
Constructors
-
EasyDialog({required Widget content, required Object id, Duration? autoHideDuration, EasyDialogDecoration<
EasyDialog> decoration = const EasyDialogDecoration.none(), EasyDialogAnimationConfiguration animationConfiguration = const EasyDialogAnimationConfiguration.bounded()}) - Creates an instance of EasyDialog.
-
EasyDialog.fullScreen({required Widget content, Object id, FullScreenWillPopCallback? androidWillPop, EasyDialogAnimationConfiguration animationConfiguration, EasyDialogDecoration<
EasyDialog> decoration, Duration? autoHideDuration}) -
Shortcut for FullScreenDialog.
factory
-
EasyDialog.positioned({required Widget content, EasyDialogPosition position, Object? id, EasyDialogAnimationConfiguration animationConfiguration, EasyDialogDecoration<
EasyDialog> decoration, Duration? autoHideDuration}) -
Shortcut for PositionedDialog.
factory
-
EasyDialog.tooltip({required Widget content, required Object targetId, Alignment alignment, Offset offset, Object? id, EasyDialogAnimationConfiguration animationConfiguration, EasyDialogDecoration<
EasyDialog> decoration, Duration? autoHideDuration}) -
Shortcut for TooltipDialog.
factory
Properties
- animationConfiguration → EasyDialogAnimationConfiguration
-
Configuration of EasyDialogAnimation.
final
- autoHideDuration → Duration?
-
The duration until the dialog will be hidden automatically.
final
- content → Widget
-
no setter
- context → EasyDialogContext
-
no setter
-
decoration
→ EasyDialogDecoration<
EasyDialog> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Object
-
Identifier of the dialog.
final
- isShown → bool
-
Available on EasyDialog, provided by the EasyDialogsX extension
Whether a EasyDialog with id is shown at the moment.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → EasyDialogLifecycleState
-
no setter
Methods
-
animatedTap(
{Duration duration = _AnimatedTap._defaultDuration, double pressScale = _AnimatedTap._defaultPressScale, Curve curve = _AnimatedTap._defaultCurve, OnEasyDismissed? onDismissed, EasyWillDismiss? willDismiss, HitTestBehavior? behavior, bool instantly = false}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Tap gesture but with extrascale inon tap down animation. -
blurBackground(
{Color backgroundColor = _BlurBackground._defaultBackgroundColor, Curve curve = EasyDialogAnimation.defaultCurve, double amount = _BlurBackground._defaultAmount}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Softly applies blur animation. -
bounce(
{Curve curve = EasyDialogAnimation.defaultCurve}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Applies a bouncing effect. -
decorate(
EasyDialogDecoration< EasyDialog> decoration) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Decorate this dialog withdecoration. -
dispose(
) → void -
Called when the dialog was disposed.
override
-
draggable(
{Rect? bounds}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
-
expansion(
{Curve curve = EasyDialogAnimation.defaultCurve}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Expansion from inside to outside. -
fade(
{Curve curve = EasyDialogAnimation.defaultCurve}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Simple fade transition. -
fadeBackground(
{Color backgroundColor = _FadeBackground._defaultBackgroundColor, double blur = _FadeBackground._defaultBlur, Curve curve = EasyDialogAnimation.defaultCurve}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Applies fade type animation with a specific amount ofblur. -
hide(
{bool instantly = false, Object? result}) → Future< void> -
Available on EasyDialog, provided by the EasyDialogsX extension
This method is used to hide a dialog. -
init(
) → void -
Called when the dialog is created and mounted.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onHidden(
) → void -
Called when the dialog hiding was completed.
override
-
onHide(
) → void -
Called when the dialog hiding was started.
override
-
onShow(
) → void -
Called when the dialog showing was started.
override
-
onShown(
) → void -
Called when the dialog showing was completed.
override
-
show<
T extends Object?> () → Future< T?> -
Available on EasyDialog, provided by the EasyDialogsX extension
The show method is used to display a dialog. -
slideHorizontal(
{Curve curve = EasyDialogAnimation.defaultCurve, HorizontalSlideDirection direction = _SlideHorizontal._defaultDirection}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Applies a horizontal slide animation. -
slideVertical(
{Curve curve = EasyDialogAnimation.defaultCurve, VerticalSlideDirection direction = _SlideVertical._defaultDirection}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Applies a vertical slide animation. -
swipe(
{DismissDirection direction = _Swipe._defaultDirection, OnEasyDismissed? onDismissed, Widget? background, Widget? secondaryBackground, VoidCallback? onResize, Duration? resizeDuration, Map< DismissDirection, double> dismissThresholds = _Swipe._defaultDismissThresholds, Duration movementDuration = _Swipe._defaultMovementDuration, double crossAxisEndOffset = _Swipe._defaultCrossAxisEndOffset, DragStartBehavior dragStartBehavior = _Swipe._defaultDragStartBehavior, HitTestBehavior behavior = _Swipe._defaultBehavior, DismissUpdateCallback? onUpdate, EasyWillDismiss? willDismiss, bool instantly = true}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Horizontal swipe dismissible. -
tap(
{HitTestBehavior behavior = _Tap._defaultBehavior, OnEasyDismissed? onDismissed, EasyWillDismiss? willDismiss, bool instantly = false}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Simple gesture tap dismiss. -
tapOutside(
{OnEasyDismissed? onDismissed, EasyWillDismiss? willDismiss, bool instantly = false}) → EasyDialog -
Available on EasyDialog, provided by the EasyDialogsX extension
Dismiss on tap outside of the dialog content. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited