ShirneDialog class

Dialog instance for all method

Properties

context BuildContext
final
hashCode int
The hash code for this object.
no setterinherited
local ShirneDialogLocalizations
no setter
overlay OverlayState
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme ShirneDialogTheme
no setter

Methods

alert(dynamic message, {CrossAxisAlignment? textBodyAlignment, ActionButtonBuilder? button, String? buttonText, TextStyle? buttonStyle, bool onConfirm()?, String title = '', Widget? titleWidget, ModalStyle? style, bool? barrierDismissible, Color? barrierColor}) Future<bool?>
show a small modal with one button which text is buttonText. the message may be a Widget or String
alertModal<T>(Widget body, List<Widget> actions, {String title = '', Widget? titleWidget, ModalStyle? style, bool? barrierDismissible, Color? barrierColor}) Future<T?>
show an AlertDialog witch content is body,with any buttons. The modal title will be hidden if title isEmpty
confirm(dynamic message, {CrossAxisAlignment? textBodyAlignment, ActionButtonBuilder? button, String? buttonText, TextStyle? buttonStyle, FutureOr<bool> onConfirm()?, String title = '', Widget? titleWidget, ActionButtonBuilder? cancelButton, String? cancelText, TextStyle? cancelStyle, ModalStyle? style, bool? barrierDismissible, Color? barrierColor}) Future<bool?>
show a confirm Modal box. the message may be a Widget or String
imagePreview<T>(List<String> images, {String? currentImage, bool? barrierDismissible, Color? barrierColor, Rect? startRect}) Future<T?>
loading(String message, {bool? showProgress, Duration? duration, Widget builder(BuildContext, double)?, LoadingStyle? style}) ProgressController
show a loading progress within an OverlayEntry. keep in time seconds or manual control it's status by pass 0 to time
show a custom modal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlayModal(Widget child, {WrapperBuilder? wrapperBuilder, AnimationConfig? animate, AnimationConfig? leaveAnimate}) EntryController
Popup a Widget in Overlay. You can handle the EnterAnimation in initialize and postFrameCallback and handle the ExitAnimation with listening controller when controller.value==1, and call controller.remove after animation
show a modal popup with body witch width will fill the screen
prompt({String? defaultValue, Widget? label, Widget builder(BuildContext, TextEditingController)?, FutureOr<bool> onConfirm(String)?, String title = '', ActionButtonBuilder? button, String? buttonText, TextStyle? buttonStyle, Widget? titleWidget, ActionButtonBuilder? cancelButton, String? cancelText, TextStyle? cancelStyle, ModalStyle? style, bool? barrierDismissible, Color? barrierColor}) Future<String?>
Popup a dialog with input to collect user input
snack(dynamic message, {VoidCallback? onTap, Widget? action, Duration? duration, Alignment? align, double? width, SnackStyle? style}) EntryController
show a SnackBar like Widget but use a diy Widget with OverlayEntry
toast(String message, {Duration? duration, Widget? icon, IconType? iconType, ToastStyle? style}) → void
show a light weight tip with in message, an icon is optional.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited