flutterflow_helpers 1.0.2
flutterflow_helpers: ^1.0.2 copied to clipboard
A lightweight utility toolkit for safer API and JSON handling in FlutterFlow. Provides safe JSON parsing, nested path access, type conversion, and debug logging.
1.0.2 #
Improvements #
- Enhanced package publishing configuration
- Improved pub.dev compatibility and validation support
- Updated repository and package metadata
- Refined documentation and package structure
- Minor internal optimizations and cleanup
Notes #
This release includes maintenance updates and publishing improvements with no breaking API changes.
1.0.1 #
Updates #
- Updated GitHub repository URL in
pubspec.yaml - Improved package metadata for better pub.dev visibility
- Minor documentation improvements
Existing Features #
- JSON Extensions
- Dynamic Extensions
- Path Extensions
- List Extensions
- API Extensions
- FFLogger
Platform Support #
Android, iOS, Web, macOS, Windows, Linux
1.0.0 #
Initial release
New Features #
-
JSON Extensions (
json_extensions.dart)safeString— null-safe string with auto type conversionsafeInt— parses strings, doubles, bools to intsafeDouble— parses strings and ints to doublesafeBool— handles bool, int (0/1), and string ("true"/"false")safeMap— returns{}instead of null or crashsafeList— returns[]instead of null or crash
-
Dynamic Extensions (
dynamic_extensions.dart)toSafeInt— safe int conversion from any dynamic valuetoSafeDouble— safe double conversiontoSafeBool— safe bool conversion with string supporttoSafeString— safe toString with null guard
-
Path Extensions (
path_extensions.dart) — signature featurepath— dot-separated nested traversal returning dynamicpathString— nested path to StringpathInt— nested path to intpathDouble— nested path to doublepathBool— nested path to boolpathList— nested path to ListpathMap— nested path to Map- Supports numeric list indices (e.g.
'data.users.0.name') - Never throws on invalid paths
-
List Extensions (
list_extensions.dart)safeFirst— null instead of StateError on empty listsafeLast— null instead of StateError on empty listsafeElementAt— null instead of RangeError on bad indexisNullOrEmpty— works on bothList<T>andList<T>?- Full nullable list support via
NullableListExtensions
-
API Extensions (
api_extensions.dart)isSuccess— true for HTTP 200–299statusCodeSafe— int with fallback 0safeData— extractsdatakey safelysafeBody— extractsbodykey safelysafeMessage— extractsmessage/error/msgsafely
-
FFLogger (
ff_logger.dart)FFLogger.log— pretty JSON printing, debug mode onlyFFLogger.warn— debug-only warningsFFLogger.error— debug-only error logging- Zero output in release builds (uses
kDebugMode)
Platform Support #
Android, iOS, Web, macOS, Windows, Linux