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
. themessage
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 anybuttons
. The modal title will be hidden iftitle
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 -
dropdown(
List< Widget> actions, {required Rect origRect, CrossAxisAlignment? actionAlignment, double? elevation, HitTestBehavior? backdropBehavior, Color? backdropColor, EdgeInsets? padding, Set<DropDownLayoutPosition> ? position, AnimationConfig? animate, AnimationConfig? leaveAnimate}) → EntryController -
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 totime
-
modal<
T> (Widget modal, {bool? barrierDismissible, Color? barrierColor}) → Future< T?> - 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
-
popup<
T> (Widget body, {double? height, double? maxHeight, BoxDecoration? decoration, double? borderRadius, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? barrierColor, Color? backgroundColor, bool? isDismissible, bool? isScrollControlled, double? elevation, WidgetBuilder? dragHandlerBuilder, bool? showClose, PopupStyle? style, Widget? closeButton, String? closeSemanticsLabel}) → Future< T?> -
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
, anicon
is optional. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited