PopThis class
PUBLIC FUNCTIONS /// ******************************************* */
A utility class for displaying popup overlays and toast-like notifications.
PopThis provides methods to show customizable popup widgets on top of your app, with support for animations, timers, and styling options.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
animatedDismissPopThis(
{VoidCallback? onDismissExtraCallback, bool shouldPopBackToPreviousWidget = false}) → Future< void> - Dismisses the PopThis overlay with an animated transition.
-
animatedDismissSecondaryTempPopThis(
{VoidCallback? onDismissExtraCallback}) → Future< void> - Dismisses the secondary temporary PopThis overlay with an animated transition.
-
dismissErrorOverlay(
) → void - Dismisses both the error overlay and any active PopThis overlay.
-
dismissPopThis(
{VoidCallback? onDismissExtraCallback, bool shouldPopBackToPreviousWidget = false}) → void - Dismisses the currently active PopThis overlay.
-
dismissSecondaryTempPopThis(
{VoidCallback? onDismissExtraCallback}) → void -
dismissSuccessOverlay(
) → void -
isPopThisActive(
) → bool -
isSecondaryPopThisActive(
) → bool -
pop(
{required Widget child, Duration duration = Duration.zero, double popUpAnimationDuration = 0.4, BuildContext? context, Color? popBackgroundColor, Color? dismissBarrierColor, Color? backButtonBackgroundColor, Color? backButtonIconColor, Color? backgroundOverlaySplashColor, Color? shadowColor, bool showTimer = false, bool hasShadow = true, bool shouldBackgroundOverlayHaveBorderRadius = true, bool shouldDismissWhenTappingBackgroundOverlay = true, bool shouldBeMarginned = true, bool shouldAnimatePopup = true, bool shouldSaveThisPop = true, bool shouldBlurBackgroundOverlayLayer = true, bool isSecondaryTemporarySinglePop = false, Gradient? backgroundOverlayGradient, Offset? popPositionOffset, Offset? overlayBackgroundLayerOffset, BoxShadow? popShadow, VoidCallback? onDismiss, EdgeInsetsGeometry? popupBorderPadding, BorderRadiusGeometry? overlayBackgroundBorderRadius, Curve newWidgetResizeAnimationCurve = Curves.easeInOutBack}) → Future< void> - Popup a Widget in front of your screen.
-
showErrorOverlay(
{Duration? duration, String? errorMessage, IconData? icon, double? overlayOpacity, void onDismiss()?}) → void -
showSuccessOverlay(
{Duration? duration, String? successMessage, IconData? icon, Widget? successMessageWidget, void onDismiss()?}) → void