flutter_helper_utils 1.3.2 copy "flutter_helper_utils: ^1.3.2" to clipboard
flutter_helper_utils: ^1.3.2 copied to clipboard

The Flutter Helper Package offers various extensions and helper methods that can make development more efficient.

1.3.2 #

  • FIX: Fixed a bug when detecting isIOSWeb and isAndroidWeb using TargetPlatform.
  • NEW: Added isApple that detects if the running device is made by apple e.g. MacOS, iPadOS, or iOS.

Usage:

context.isApple
//or
defaultTargetPlatform.isApple

1.3.1 #

  • NEW: Added toBool to nullable Object?.

Rules:

  • if object is bool return it.
  • if object is null return false.
  • if object is string and is equal to 'yes', 'true', or '1' return true.

1.3.0 #

  • HOT FIX: Fixed bool extension is not exported.

1.2.9 #

  • NEW: Added isTrue, and isFalse on nullable boolean, now if bool? is null the check will always return false instead of showing compile error.

1.2.8 #

  • UPDATE: replace isNegativeOrNull, isPositiveOrNull, isNotNegativeOrNull, isNotPositiveOrNull, and isNotZeroOrNull with just isNegative, isPositive, and isZeroOrNull in nullable numbers.

1.2.7 #

  • NEW: Added an option to check the device type when running on web, e.g. isMobileWeb or isDesktopWeb.

1.2.6 #

  • NEW: Added local getter in datetime that call toLocal() on any dat, but it respects null safety.

1.2.5 #

  • NEW: Added tryRemoveAt, indexOfOrNull, indexWhereOrNull, and tryRemoveWhere on List<T>? extension.
  • UPDATE: Update the package to FlutterSDK 3.10.
  • FIX: Fixed a bug with isNotNull on Object extension.

1.2.4 #

  • NEW: Added DatesHelper class that provide a set of static methods for DateTime such as isSameHour, diffInDays, and daysInRange.
  • NEW: Added the getters isPresent, isPast, passedDuration, remainingDays, and more to the DateTime extension.
    • Now you can get formatted date using the format method directly in any date e.g DateTime.now().format('EEE')

1.2.3 #

  • NEW: Added scaffoldMessenger getter in the BuildContext extension to easily call ScaffoldMessenger.of(context)
  • UPDATE: Improved implementation of the toList and tryToList in the ConvertObject class.

1.2.2 #

  • NEW: Added toUtcIso (supports null safety) that convert any date toUtc() and toIso8601String() in the Date extensions.

1.2.1 #

  • NEW: Added isEmptyOrNull and isNotEmptyOrNull to Map and Set extensions.

1.2.0 #

  • UPDATE: Update documentation.

1.1.9 #

  • FIX: Fixed a bug with isZero bool in numbers extensions.
  • UPDATE: asBool support null safety on numbers extensions.
  • UPDATE: Updated ParsingException implementation.

1.1.8 #

  • NEW: Added isPositiveOrNull, isZeroOrNull, and isNegativeOrNull to all numbers extensions.
  • UPDATE: on String extension, isEmptyOrNull now returns true if string has only empty lines.

1.1.7 #

  • NEW: Added toDateTime and tryToDateTime in ConvertObject class.

1.1.6 #

  • NEW: Added toMap and tryToMap in ConvertObject class, and add isValidSVG in String extension.

1.1.5 #

  • NEW: Added toBool and tryToBool in ConvertObject class.
  • UPDATE: Improved all implementations of static methods in ConvertObject class.

1.1.4 #

  • NEW: Supported converting timestamp milliseconds to DateTime and added tryToString in ConvertObject class.

1.1.3 #

  • FIX: Added missing pushNamedAndRemoveUntil in the navigation extension.

1.1.2 #

  • UPDATE: Improved asBool implementation in the string extension.

1.1.1 #

  • FIX: Fixed a bug in camelCase conversion algorithm.

1.1.0 #

  • FIX: Fixed logo does not appear in readme file.

1.0.9 #

  • UPDATE: Re-organized changelog and updated readme file.

1.0.8 #

  • FIX: Fixed bug with isHexColor in color extension.

1.0.7 #

  • NEW: Added new color extension to support converting hex string to color and checking if string is a hex color.

1.0.6 #

  • UPDATE: Supported null safety to ThemeMode and Brightness.

1.0.5 #

  • UPDATE: Changed pop to popPage to solve conflicts with go_router package extensions.

1.0.4 #

  • UPDATE: Updated readme file.

1.0.3 #

  • NEW: Added capitalizeFirstLetter, toPascalCase, toTitleCase, and toCamelCase to String extension.

1.0.2 #

  • UPDATE: Renamed some getters to fix conflicts with the get package.

1.0.1 #

  • UPDATE: Updated readme file.

1.0.0 #

  • INITIAL: Initial release.
35
likes
0
pub points
80%
popularity

Publisher

unverified uploader

The Flutter Helper Package offers various extensions and helper methods that can make development more efficient.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on flutter_helper_utils