hc_utils/hc_custom_functions library
Enums
- HcPageRouteAnimation
- Enum for page route
Extensions
- HcBooleanExtensions on bool?
- HcFileSaveUtils on void
-
HcIndexedIterable
on Iterable<
E> - HcStringCasingExtension on String
- HcWidgetExtension on Widget?
Constants
- hcHomeBgColor → const Color
- hcPrimaryColor → const Color
- hcSecondColor → const Color
- hcTextPrimaryColor → const Color
- hcTextSecondaryColor → const Color
Properties
- hcDefaultRadius ↔ double
-
getter/setter pair
- hcDesktopBreakpointGlobal ↔ double
-
getter/setter pair
- hcDirPath ↔ String
-
getter/setter pair
- hcFontFamilyBoldGlobal ↔ String?
-
getter/setter pair
- hcFontFamilyPrimaryGlobal ↔ String?
-
getter/setter pair
- hcFontFamilySecondaryGlobal ↔ String?
-
getter/setter pair
- hcFontWeightBoldGlobal ↔ FontWeight
-
getter/setter pair
- hcFontWeightPrimaryGlobal ↔ FontWeight
-
getter/setter pair
- hcFontWeightSecondaryGlobal ↔ FontWeight
-
getter/setter pair
- hcPageRouteAnimationGlobal ↔ HcPageRouteAnimation?
-
getter/setter pair
- hcPageRouteTransitionDurationGlobal ↔ Duration
-
getter/setter pair
- hcRoundedRectangleShape ↔ RoundedRectangleBorder
-
getter/setter pair
- hcTabletBreakpointGlobal ↔ double
-
getter/setter pair
- hcTextBoldSizeGlobal ↔ double
-
getter/setter pair
- hcTextPrimaryColorGlobal ↔ Color
-
getter/setter pair
- hcTextPrimarySizeGlobal ↔ double
-
getter/setter pair
- hcTextSecondaryColorGlobal ↔ Color
-
getter/setter pair
- hcTextSecondarySizeGlobal ↔ double
-
getter/setter pair
Functions
-
hcBuildPageRoute<
T> (Widget child, HcPageRouteAnimation? pageRouteAnimation, Duration? duration) → Route< T> -
hcCalculateAge(
String birthDateString) → String - Calculate Age
-
hcCheckMature(
String birthDateString) → bool - Check Age if age is greater than 18 year or not
-
hcFormatTime(
int timeNum) → String - Convert Time Format
-
hcGradient(
[Color secondGradientColor = hcSecondColor, Color firstGradientColor = hcPrimaryColor, AlignmentGeometry begin = Alignment.topCenter, AlignmentGeometry end = Alignment.bottomCenter]) → Gradient - returns gradient
-
hcLiesBetweenTimes(
String sTime, String eTime) → bool - Lies Between Times
-
hcOnBackPressed(
BuildContext context) → dynamic -
hcRadius(
[double? radius]) → BorderRadius - returns Radius
-
hcRadiusCircular(
[double? radius]) → Radius - returns Radius
-
hcShowDialog<
T> ({required BuildContext context, bool barrierDismissible = true, Widget? child, WidgetBuilder? builder}) → Future< T?> -
hcTimeDifference(
String startTime, String endTime) → String - Time Difference
-
hcValidateTextField(
BuildContext context, dynamic controller, String fieldName, {FocusNode? focusNode}) → bool - Validate Text Field or Dropdown Value
-
hcValidateTextInputField(
BuildContext context, TextEditingController controller, String fieldName, {FocusNode? focusNode}) → bool - Validate Text Input Field