flutter_helper_utils 1.3.2 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
andisAndroidWeb
usingTargetPlatform
. - 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 nullableObject?
.
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
, andisFalse
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
, andisNotZeroOrNull
with justisNegative
,isPositive
, andisZeroOrNull
in nullable numbers.
1.2.7 #
- NEW: Added an option to check the device type when running on web, e.g.
isMobileWeb
orisDesktopWeb
.
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
, andtryRemoveWhere
onList<T>?
extension. - UPDATE: Update the package to FlutterSDK 3.10.
- FIX: Fixed a bug with
isNotNull
onObject
extension.
1.2.4 #
- NEW: Added
DatesHelper
class that provide a set of static methods for DateTime such asisSameHour
,diffInDays
, anddaysInRange
. - NEW: Added the getters
isPresent
,isPast
,passedDuration
,remainingDays
, and more to theDateTime
extension.- Now you can get formatted date using the format method directly in any date e.g
DateTime.now().format('EEE')
- Now you can get formatted date using the format method directly in any date e.g
1.2.3 #
- NEW: Added
scaffoldMessenger
getter in theBuildContext
extension to easily callScaffoldMessenger.of(context)
- UPDATE: Improved implementation of the
toList
andtryToList
in theConvertObject
class.
1.2.2 #
- NEW: Added
toUtcIso
(supports null safety) that convert any datetoUtc()
andtoIso8601String()
in the Date extensions.
1.2.1 #
- NEW: Added
isEmptyOrNull
andisNotEmptyOrNull
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
, andisNegativeOrNull
to all numbers extensions. - UPDATE: on String extension,
isEmptyOrNull
now returns true if string has only empty lines.
1.1.7 #
- NEW: Added
toDateTime
andtryToDateTime
inConvertObject
class.
1.1.6 #
- NEW: Added
toMap
andtryToMap
inConvertObject
class, and addisValidSVG
in String extension.
1.1.5 #
- NEW: Added
toBool
andtryToBool
inConvertObject
class. - UPDATE: Improved all implementations of static methods in
ConvertObject
class.
1.1.4 #
- NEW: Supported converting timestamp milliseconds to
DateTime
and addedtryToString
inConvertObject
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
topopPage
to solve conflicts withgo_router
package extensions.
1.0.4 #
- UPDATE: Updated readme file.
1.0.3 #
- NEW: Added
capitalizeFirstLetter
,toPascalCase
,toTitleCase
, andtoCamelCase
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.