UtilUI class

Constructors

UtilUI()

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

getPoints(dynamic data) List<MarkAnnotation>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tooltip(Offset anchor, List<Tuple> selectedTuples) List<Figure>
tooltip2(Offset anchor, List<Map<String, dynamic>> selectedTuples) List<Figure>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

clearAllPages(dynamic context) → void
createButton(dynamic onPress, dynamic title, {dynamic rate, dynamic noWidth = false, dynamic color, dynamic textColor = Colors.white, dynamic elevation = StyleCustom.elevation, dynamic borderColor = Colors.transparent, dynamic fontSize, dynamic padding, dynamic fontWeight = FontWeight.bold}) Widget
createCustomButton(dynamic onPress, dynamic title, {dynamic color, dynamic textColor = Colors.white, dynamic elevation = 4.0, dynamic borderColor = Colors.transparent, dynamic fontSize, dynamic fontWeight = FontWeight.bold, dynamic borderWidth = 1.0, double? radius}) Widget
createItems(BuildContext context, String title, dynamic values, String id, {bool hasTitle = true}) List<Widget>
createItems2(BuildContext context, String title, List<ItemOption> values) List<Widget>
createLabel(dynamic title, {dynamic textAlign = TextAlign.left, dynamic color = Colors.white, dynamic fontSize, dynamic fontWeight = FontWeight.bold, dynamic decoration = TextDecoration.none, dynamic style = FontStyle.normal, dynamic overflow = TextOverflow.ellipsis, int? line}) Widget
createStars({dynamic onClick(int)?, bool hasFunction = false, dynamic rate = 0, double? size, dynamic color = Colors.yellow}) Widget
createTextField(dynamic context, dynamic ctr, dynamic currentFocus, dynamic nextFocus, dynamic hintText, {dynamic isPassword = false, dynamic readOnly = false, dynamic inputAction = TextInputAction.next, Widget? suffixIcon, dynamic onPressIcon, dynamic inputType = TextInputType.text, dynamic maxLength, dynamic maxLines = 1, dynamic padding, dynamic fontSize, dynamic textColor = Colors.black, dynamic borderColor, Function? onSubmit, Function? onChanged, dynamic inputFormatters, double sizeBorder = 5.0, Color fillColor = Colors.white}) Widget
getDeviceInfo() Future<Map<String, String>>
goBack(dynamic context, dynamic value) → void
goToNextPage(dynamic context, dynamic page, {Function? funCallback}) → void
goToPage(dynamic context, dynamic page, Function? funCallback) → void
imageDefault({String asset = 'assets/images/ic_default.png', BoxFit fit = BoxFit.fill, double? width}) Image
launchUrl(BuildContext context, String url) → void
logout({bool isRemove = false}) → dynamic
shareTo(BuildContext context, String sharePath, String trackPath) → void
showConfirmDialog(dynamic context, dynamic message, dynamic hintText, dynamic alertMsg, {dynamic title, dynamic lblOK, dynamic alignMessage = Alignment.centerLeft, dynamic alignMessageText = TextAlign.left, dynamic colorMessage = const Color(0xFF1F1F1F), dynamic hasSubOK = false, dynamic showMsg = true, dynamic autoClose = true, dynamic inputType = TextInputType.text, dynamic maxLength, dynamic line = 1, dynamic isCheckEmpty = true, dynamic action = TextInputAction.done, dynamic initContent = '', dynamic padding, dynamic inputFormatters, dynamic suffix}) Future
showCustomAlertDialog(dynamic context, dynamic message, {dynamic title, dynamic isActionCancel = false}) Future<bool?>
showCustomDialog(dynamic context, dynamic message, {dynamic title, dynamic isActionCancel = false, dynamic lblOK, dynamic lblCancel, dynamic alignMessageText = TextAlign.center}) Future<bool?>
showOptionDialog(BuildContext context, String title, dynamic values, String id, {bool hasTitle = true, bool allowOff = true}) Future
showOptionDialog2(BuildContext context, String title, List<ItemOption> values) Future<bool?>