my_widgets library

Classes

MyWidgets

Functions

launchUrlBody(String url, LaunchMode? mode, String? webOnlyWindowName, WebViewConfiguration? webViewConfiguration) Future<bool>
pBoxDecoration({Color? color, BorderRadius? borderRadius, double? radius, double borderWidth = 1, String? image, bool isAsset = true, BoxFit? fit, DecorationImage? decorationImage, BoxBorder? border, bool hasBorder = false, Color? borderColor, List<BoxShadow>? boxShadow, Color shadowColor = Clr.colorWhite, double shadowRadius = 0, Offset shadowOffset = const Offset(0.0, 0.0), Gradient? gradient, BorderStyle borderStyle = BorderStyle.solid, BoxShape? shape}) BoxDecoration
pCurrencyFormat(dynamic value, {String? locale, String? symbol, int? decimalDigits, bool? isCurrencyCompact}) → dynamic
pDropDownButton(String labelHint, String hintText, List<DropdownMenuItem<int>> listDropDown, int? selectedValue, dynamic onChange(int? val), {bool isExpanded = true, double paddingHorizontal = 0.0, bool enabled = true, FocusNode? focusNode, bool hasBorder = false}) Widget
pFocusOut({BuildContext? context, bool isHide = true, FocusNode? focusNode}) → dynamic
pLaunchURL(String action, {URLType urlType = URLType.web, LaunchMode? mode, String? webOnlyWindowName, WebViewConfiguration? webViewConfiguration, String? emailBody, bool setUrlCorrection = false, bool openInGoogleIfError = true}) Future<void>
pRemoveHtmlIfNeeded(String text) String
pSetCard({Widget? child, Color? shadowColor, double elevation = 10, GestureTapCallback? onTap, EdgeInsetsGeometry? padding, double paddingSize = 0, double? radius}) Widget
pSetRout({required dynamic page, RouteType routeType = RouteType.push, bool fullscreenDialog = false, BuildContext? context, Duration? duration, Curve? curve, Transition? transition}) Future
pSetSettings({required Color primaryColor, required Color secondaryColor, String baseUrlLive = '', String baseUrlTest = '', bool? useDefaultURl, bool isLive = true, String defaultImage = 'assets/default.png', bool defImageIsAsset = true, dynamic httpCallsDefaultResponse = true, double defaultFontSize = 14.0, double defaultRadius = 8.0, double defaultBtnHeight = 50, bool? txtInputHasBorder, bool txtInputHasLabel = false, bool txtInputHasLabelOnTop = false, bool txtInputHasLabelWithStar = true, bool defaultImageClick = true, EdgeInsetsGeometry? txtInoutDefaultContentPadding, bool httpCallsWithStream = false, bool httpResponseUtf8Convert = false, bool? showAPILogs, String? internetIssueMessage, String? localization, FontWeight? fontWeight, TextStyle? txtStyle, TextStyle? labelInputStyle, TextStyle? hintInputStyle, TextStyle? styleInput, TextStyle? prefixInputStyle, Color? txtColor, Color? txtInputColor, String? currencySymbol, String? currencyLocale, int? currencyDecimal, bool isCurrencyCompact = false, InputDecoration? inputDecoration, Map<String, String>? httpHeader, Map<String, String>? httpHeaderAddOns, InputBorder? txtInputEnabledBorder, InputBorder? txtInputFocusedBorder, InputBorder? txtInputErrorBorder, InputBorder? txtInputBorder, Color? txtInputBorderColor, double? txtInputLabelPadding, double? btnHeight, double? btnRadius, Color? btnBgColor, Color? btnTextColor, Color? btnBorderColor, bool? appDirectionLeftToRight, String? fontFamily, int stopDecodingFromErrorCode = 400, bool? defaultLoadingProIsIOS, Toast defaultToastLength = Toast.LENGTH_SHORT, int httpCallTimeoutInSec = 20, Matrix4? onHoverDefaultMatrix4, double? onHoverDefaultScale, Duration? onHoverDefaultAnimatedDuration, Color? webDialogBgColor, Duration? dialogAnimationDuration, String? defaultDateFormat, String? defaultDateTimeFormat, EdgeInsets? webDialogPadding, EdgeInsets? webDialogMargin, bool? isHintCapitalizeFirst, bool? usePreCheckFunctionInHttpCalls, dynamic onHttpCallError(dynamic error, dynamic response, bool? defaultResponse)?}) Future<void>
pShowToast({required String message, Color colorText = Colors.white, Color? backgroundColor, Color? errorBackgroundColor, bool isError = false, ToastGravity? toastGravity, Toast? toastLength}) → dynamic
pSnackBar({String title = 'Info', required String? message, Color colorText = Clr.colorWhite, Color? backgroundColor, Color? borderColor, bool isError = false, SnackPosition snackPosition = SnackPosition.TOP, dynamic onTap(GetSnackBar snackBar)?}) → dynamic