multiutillib library Null safety

Classes

Animations
ConnectivityLayout
This widget is used to show messages for network operations This widget uses ConnectivityWidgetWrapper from connectivity_wrapper package
CustomToggleButton
DecimalInputFormatter
DefaultButton
This widget will build a custom shaped Button
FadeAnimation
HyperLinkText
This widget will display a text in hyper link format This widget uses launch method from url_launcher package
LoadingWidget
LoadingWidget This widget will show a loading effect for showing loading of data This widget uses Shimmer widget from shimmer package
MaterialCard
MaterialCard This widget will show a card view widget
NoRecordsFound
OffsetAnimation
OffsetAnimation class This class will play an offset animation to the provided widget
OTPTextField
OTPTextField this message will show OTP Fields for no of fields passed
RichTextWidget
RichTextWidget This widget will show text in single or new line in caption description format This widget uses RichText widget
SlideAnimation

Extensions

DateTimeExtension
DurationExtension
FromDurationExtension
NumberExtension
StringExtension
TimeOfDayExtension

Constants

horizontalSpace3 → const SizedBox
SizedBox(width: 3)
horizontalSpace6 → const SizedBox
SizedBox(width: 6)
horizontalSpace12 → const SizedBox
SizedBox(width: 12)
horizontalSpace18 → const SizedBox
SizedBox(width: 18)
horizontalSpace24 → const SizedBox
SizedBox(width: 24)
horizontalSpace30 → const SizedBox
SizedBox(width: 30)
horizontalSpace36 → const SizedBox
SizedBox(width: 36)
horizontalSpace42 → const SizedBox
SizedBox(width: 42)
horizontalSpace48 → const SizedBox
SizedBox(width: 48)
horizontalSpace54 → const SizedBox
SizedBox(width: 54)
horizontalSpace60 → const SizedBox
SizedBox(width: 60)
kDateDisplayFormat → const String
'dd/MM/yyyy'
kDefaultDateTimeFormat → const String
'yyyy-MM-dd HH:mm:ss'
kFullDateDisplayFormat → const String
'dd MMMM, yyyy'
kFullMonthYearFormat → const String
'MMMM-yyyy'
kInternetNotAvailable → const String
'Internet Connection not Available.'
kNo → const String
'No'
kOK → const String
'OK'
kTimeDisplayFormat → const String
'hh:mm a'
kYes → const String
'Yes'
verticalSpace3 → const SizedBox
SizedBox(height: 3)
verticalSpace6 → const SizedBox
SizedBox(height: 6)
verticalSpace12 → const SizedBox
SizedBox(height: 12)
verticalSpace18 → const SizedBox
SizedBox(height: 18)
verticalSpace24 → const SizedBox
SizedBox(height: 24)
verticalSpace30 → const SizedBox
SizedBox(height: 30)
verticalSpace36 → const SizedBox
SizedBox(height: 36)
verticalSpace42 → const SizedBox
SizedBox(height: 42)
verticalSpace48 → const SizedBox
SizedBox(height: 48)
verticalSpace54 → const SizedBox
SizedBox(height: 54)
verticalSpace60 → const SizedBox
SizedBox(height: 60)

Functions

convertTimeOfDay(TimeOfDay timeOfDay, {String? timeFormat}) String
convertTimeOfDay method this method will convert time of day to date time format
@Deprecated('Use .toDisplayTime extension instead.')
emailValidator(String _value) String?
validation method for validating email id
formatDateTime(String dateTime, {String? newDateTimeFormat}) String
formatDateTime method this method will format a date string in default or format provided.
@Deprecated('Use .toDisplayDate extension instead.')
formatNumber({required String numberToFormat, String customPattern = '##,###,###.##'}) String
formatNumber method this method will format the number in default pattern or custom pattern
@Deprecated('You can use .formatNumber extension method.')
getAppVersion() Future<String>
getAppVersion method this method will return the current version of the app
getCharFromString({required String stringToExtract}) String
getCharFromString method this method will return characters from string passed
getCurrentDate({String? newDateTimeFormat}) String
getCurrentDate method this method will get current date in format provided.
getDeviceId() Future<String>
getDeviceId method this method will get device info like model name and device id
getDeviceName() Future<String?>
getDeviceName method this method will get device or model name of the device
getNumbersFromString({String? stringToExtract}) String?
getNumbersFromString method this method will return all the digits from string passed
getRandomMobileNumber() String
getRandomMobileNumber method this method will return randomly generated mobile number
getRandomNumber({required int min, required int max}) String
getRandomNumber method this method will return a random number between min and max number passed
getSingleDigitRandomNumber() String
getSingleDigitRandomNumber method this method will return a single digit random number
hideProgressDialog() → dynamic
hide progress dialog method [...]
isNumeric(String s) bool
isNumeric method this method will check if passed string is numeric or not
@Deprecated('You can use .isNumeric extension.')
replaceNullWithDouble(String? data) double
replaceNullWithDouble method this method will check and replace null with an double value
@Deprecated('You can use .replaceNullWithDouble extension.')
replaceNullWithEmpty(String? data) String
replaceNullWithEmpty method this method will check and replace null with an empty string
@Deprecated('You can use .replaceNullWithEmpty extension.')
replaceNullWithZero(String? data) int
replaceNullWithZero method this method will check and replace null with an integer value
@Deprecated('You can use .replaceNullWithZero extension.')
replaceTrueOrFalse(dynamic data) int
replaceTrueOrFalse method this method will check and replace true/false value with integer value
@Deprecated('You can use .replaceTrueOrFalse extension.')
showConfirmationDialog(BuildContext context, {Widget? transitionAnimation, String negativeBtnText = kNo, String positiveBtnText = kYes, bool barrierDismissible = false, Color dividerColor = Colors.blue, Color negativeBtnColor = Colors.red, Color positiveBtnColor = Colors.blue, TextAlign descTextAlign = TextAlign.center, TextAlign titleTextAlign = TextAlign.center, Duration transitionDuration = const Duration(milliseconds: 400), DialogAnimationType dialogAnimationType = DialogAnimationType.grow, TextStyle descStyle = const TextStyle(fontSize: 16, letterSpacing: 0.27, color: Colors.black), TextStyle titleStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, fontWeight: FontWeight.bold), TextStyle positiveBtnStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, fontWeight: FontWeight.w400), TextStyle negativeBtnStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, fontWeight: FontWeight.w400), required String title, required String description, required VoidCallback onPositivePressed}) → dynamic
This method will show a dialog box with custom UI and animation
showCustomDatePicker({required BuildContext context, required Function onCancelClick, String applyButtonText = 'Apply', String cancelButtonText = 'Cancel', Color leftArrowColor = Colors.blue, Color rightArrowColor = Colors.blue, Color applyButtonColor = Colors.blue, Color cancelButtonColor = Colors.red, Color weekDaysTextColor = Colors.blue, Color selectedDateColor = Colors.blue, Color monthYearTextColor = Colors.black, required dynamic onApplyClick(DateTime? dateTime)?, TextStyle applyButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.white, fontWeight: FontWeight.bold), TextStyle cancelButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.white, fontWeight: FontWeight.bold), DateTime? minimumDate, DateTime? maximumDate, DateTime? initialStartDate, bool barrierDismissible = false}) → dynamic
showCustomDateRangePicker({required BuildContext context, required Function onCancelClick, String applyButtonText = 'Apply', String cancelButtonText = 'Cancel', Color leftArrowColor = Colors.blue, Color rightArrowColor = Colors.blue, Color applyButtonColor = Colors.blue, Color cancelButtonColor = Colors.red, Color weekDaysTextColor = Colors.blue, Color selectedRangeColor = Colors.blue, Color monthYearTextColor = Colors.black, required dynamic onApplyClick(DateTime? startDate, DateTime? endDate)?, TextStyle applyButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.white, fontWeight: FontWeight.bold), TextStyle cancelButtonTextStyle = const TextStyle(fontSize: 18, color: Colors.white, fontWeight: FontWeight.bold), DateTime? minimumDate, DateTime? maximumDate, DateTime? initialEndDate, DateTime? initialStartDate, bool barrierDismissible = false}) → dynamic
showCustomDialog(BuildContext context, {String btnText = kOK, Color btnColor = Colors.blue, bool barrierDismissible = false, Color dividerColor = Colors.blue, TextAlign descTextAlign = TextAlign.center, TextAlign titleTextAlign = TextAlign.center, Duration transitionDuration = const Duration(milliseconds: 400), DialogAnimationType dialogAnimationType = DialogAnimationType.grow, TextStyle descStyle = const TextStyle(fontSize: 16, letterSpacing: 0.27, color: Colors.black), TextStyle btnStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, fontWeight: FontWeight.w400), TextStyle titleStyle = const TextStyle(fontSize: 18, letterSpacing: 0.27, fontWeight: FontWeight.bold), required String title, required String description}) → dynamic
This method will show a dialog box with custom UI and animation
showProgressDialog(BuildContext context, {String message = 'Please wait...', Widget? progressWidget}) → dynamic
show progress dialog method [...]

Enums

DialogAnimationType
DialogAnimationType Use for animating custom dialog box showCustomDialog
SlideDirection
SlideDirection Use for providing animations to SlideAnimation