ShirneDialog class
Methods
-
alert(dynamic message, {String? buttonText, String title = '', Widget? titleWidget, bool barrierDismissible = true, Color? barrierColor = Colors.black54})
→ Future<bool?>
-
show a small modal with one button which text is
buttonText
.
the message
may be a Widget or String
-
confirm(dynamic message, {String? buttonText, String title = '', Widget? titleWidget, String? cancelText, bool barrierDismissible = true, Color? barrierColor = Colors.black54})
→ Future<bool?>
-
show a confirm Modal box.
the
message
may be a Widget or String
-
imagePreview(List<String> images, {String? currentImage, bool barrierDismissible = true, Color? barrierColor = Colors.black54})
→ Future
-
-
loading(String message, {dynamic showProgress = false, dynamic showOverlay = true, double time = 3})
→ DialogController
-
show a loading progress within an OverlayEntry.
keep in
time
seconds or manual control it's status by pass 0 to time
-
modal<T>(Widget body, List<Widget> buttons, {String title = '', Widget? titleWidget, bool barrierDismissible = false, Color? barrierColor = Colors.black54})
→ Future<T?>
-
show a modal witch content is
body
,with any buttons
.
The modal title will be hidden if title
isEmpty
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
show a modal popup with
body
witch width will fill the screen
-
snack(String message, {Widget? action, int duration = 3, Alignment? align, double width = 0.7})
→ EntryController
-
show a SnackBar like Widget but use a diy Widget with OverlayEntry
-
toast(String message, {int duration = 2, Alignment? align, Widget? icon, IconType iconType = IconType.none})
→ void
-
show a light weight tip with in
message
, an icon
is optional.
-
toString()
→ String
-
A string representation of this object.
inherited