Dialogs class Null safety

This class is used to display dialogs easily without worrying about what platform you use to display the dialog. It will automatically adapt to iOS or other platforms

Constructors

Dialogs()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

dialogWithOptions({required BuildContext context, required String title, required String message, String textLeftButton = 'OK', Color? titleTextColor, Color? messageTextColor, String textRightButton = 'Cancel', Function? onPressedLeftButton, Function? onPressedRightButton, bool isRightButtonADestructiveAction = true, double buttonFontSize = 20, double titleFontSize = 25}) → void
Here is the dialog with options, it's useful if you want to pop up a dialog where you can choose between two options. One of them can be set as destructive action.
infoDialog({required BuildContext context, required String title, required String message, String buttonText = "Ok", Color buttonTextColor = Colors.lightBlue, Color buttonTextColorDark = Colors.lightBlueAccent, VoidCallback? onPressed, Color titleTextColor = const Color(0xFF424242), Color titleTextColorDark = Colors.white, Color messageTextColor = const Color(0xFF424242), Color messageTextColorDark = Colors.white}) → void
This method will display an informative dialog with just one button
loadingDialog({required BuildContext context, String title = "", Color? androidLoadingColor, Color? titleTextColor}) → void
This method will display a dialog with a loading indicator inside
textInputDialog({required BuildContext context, required String title, required String message, TextEditingController? editingController, String dismissButtonText = 'OK', Color? titleTextColor, Color? messageTextColor, VoidCallback? onPressed, VoidCallback? onEditingComplete, bool isPhoneNumber = false, Function? onChanged, double dismissButtonFontSize = 20, double titleFontSize = 25, String? placeHolder}) → void
This method will display a dialog with two buttons that have actions