tools/utils/utils library

Functions

dataRefresh(dynamic body) → dynamic
getBadgeMaterial(String item, {Color materialColors = Colors.deepOrange, Color materialShadowColor = Colors.red, Color textColor = Colors.white, double materialElevation = 5.0, double fontSize = 12.0, FontWeight fontWeight = FontWeight.bold, double width = 25}) → dynamic
getDuration(String value) String
getHRWithText({required String text}) → dynamic
getImage({String? pathImage, IconData? icon, bool isImgOnline = false, Color? color, double? height}) → dynamic
getImageOrIcon({required String photoPath, double width = Dimensions.IMAGE_PROFIL_WIDTH}) → dynamic
getRandString(int len) String
getTimeAgoFormat(String? value) → dynamic
getWidgetButton({required String text, required IconData icon, required MaterialColor bgColor, dynamic onPressed()?}) → dynamic
heading({required String title, String? pathImage, IconData? icon, Color? color}) → dynamic
setConnectivity() → dynamic
showCustomDialogWithTitle(BuildContext context, {String? title, required Widget body, required dynamic onTapSubmit}) Future
showDialogProgress({required bool show, bool barrierDismissible = true}) → dynamic
valdiateURL(String url) bool