PopupHelper class

Constructors

PopupHelper.new()

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
popupDialog(BuildContext context, String title, String text, dynamic button1, {dynamic button2}) Widget
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

button({String? title, IconData? icon, Color? iconColor, bool waiting = false, dynamic onPress, Widget? titleWidget, required dynamic context}) Widget
cancelButton({Function? onPress, bool enable = true, dynamic returnValue = false, required BuildContext context}) Widget
confirm({required dynamic context, dynamic title, dynamic titleWidget, dynamic text, dynamic textWidget, dynamic cancelText, dynamic onValidate, dynamic onCancel}) Future<Object?>
displayInfo(String message, dynamic context, {bool info = false, IconData icon = Icons.report_problem_outlined}) → void
helpButton({required String title, String? text, Widget? content, required BuildContext context, Color? background}) Widget
okButton({Function? onPress, bool waiting = false, required BuildContext context}) Widget
popupWidget({required BuildContext context, String? title, Widget? titleWidget, IconData? icon, dynamic body, dynamic button1, dynamic button2, dynamic button3, dynamic button4, dynamic key}) Widget
showDialog(BuildContext context, Widget body, {Widget? button1, Widget? button2, Widget? button3, Widget? button4, String? title, Widget? titleWidget, IconData? icon, bool handleTVRemote = false, dynamic key}) Future<Object?>
titleBar({required BuildContext context, IconData? icon, String? title, dynamic buttons}) Container
titleButton({required dynamic icon, dynamic onPress, required BuildContext context}) Widget
titleButtonCancel(dynamic context) Widget
titleButtonOk(dynamic context, dynamic onPress) Widget