Skip to content

v1.0.0#44

Merged
basemosama merged 22 commits into
mainfrom
qa
Apr 1, 2026
Merged

v1.0.0#44
basemosama merged 22 commits into
mainfrom
qa

Conversation

@basemosama

Copy link
Copy Markdown
Member

1.0.0

  • Added support for nested JSON keys using dot notation (e.g., 'data.user.name') in all safe_json_convert functions.
  • Introduced toEnum/asEnum and toUri/asUri safe conversion functions.
  • Improved generic list parsing in toListOrNull by adding a fallback to List<T>.from(value) for safer runtime casting.
  • Optimized TalkerPlayxLogger to strictly respect the enabled configuration, utilize debugPrint, and automatically disable colored output in Web environments to avoid unformatted ANSI codes.
  • Refactored PlayxColorExtensions to eliminate deprecated dart:ui getters, transitioning to Flutter 3.24 wide-gamut compatibility (a, r, g, b). Added fromHex, lighten, darken, and isDark helper methods.
  • Expanded core extension libraries (String, Iterable, DateTime, Duration, bool, BuildContext) to include new highly-requested utilities:
    • String: Added helpers like toIntOrNull(), isNumeric, isValidEmail, toSlug(), and NullableStringExtensions on String? (e.g., isNullOrEmpty).
    • Iterable: Added functional utilities chunked, groupBy, sortedBy, and numeric aggregates (sum, average).
    • DateTime: Added boundary generators like startOfDay, endOfMonth, and startOfWeek.
    • Context: Mapped the complete Material 3 ColorScheme properties (e.g., onPrimary, surfaceContainer) directly to BuildContext for agile theming.

- Add support for wasm support for web.
- Update flutter_secure_storage: to v10.0.0-beta.2 which includes some breaking changes.

Signed-off-by: Basem Osama <engbasemosama@gmail.com>
Signed-off-by: Basem Osama <engbasemosama@gmail.com>
Signed-off-by: Basem Osama <engbasemosama@gmail.com>
# Conflicts:
#	CHANGELOG.md
#	example/pubspec.lock
#	lib/src/utils/safe_json_convert.dart
#	pubspec.yaml
Signed-off-by: Basem Osama <engbasemosama@gmail.com>
Signed-off-by: Basem Osama <engbasemosama@gmail.com>
# Conflicts:
#	CHANGELOG.md
#	pubspec.yaml
Signed-off-by: Basem Osama <engbasemosama@gmail.com>
# Conflicts:
#	.flutter-plugins
#	.flutter-plugins-dependencies
#	CHANGELOG.md
#	example/pubspec.lock
#	pubspec.yaml
(cherry picked from commit 65fded1)
## 1.0.0
- Added support for nested JSON keys using dot notation (e.g., `'data.user.name'`) in all `safe_json_convert` functions.
- Introduced `toEnum`/`asEnum` and `toUri`/`asUri` safe conversion functions.
- Improved generic list parsing in `toListOrNull` by adding a fallback to `List<T>.from(value)` for safer runtime casting.
- Optimized `TalkerPlayxLogger` to strictly respect the `enabled` configuration, utilize `debugPrint`, and automatically disable colored output in Web environments to avoid unformatted ANSI codes.
- Refactored `PlayxColorExtensions` to eliminate deprecated `dart:ui` getters, transitioning to Flutter 3.24 wide-gamut compatibility (`a`, `r`, `g`, `b`). Added `fromHex`, `lighten`, `darken`, and `isDark` helper methods.
- Expanded core extension libraries (`String`, `Iterable`, `DateTime`, `Duration`, `bool`, `BuildContext`) to include new highly-requested utilities:
  - **String**: Added helpers like `toIntOrNull()`, `isNumeric`, `isValidEmail`, `toSlug()`, and `NullableStringExtensions` on `String?` (e.g., `isNullOrEmpty`).
  - **Iterable**: Added functional utilities `chunked`, `groupBy`, `sortedBy`, and numeric aggregates (`sum`, `average`).
  - **DateTime**: Added boundary generators like `startOfDay`, `endOfMonth`, and `startOfWeek`.
  - **Context**: Mapped the complete Material 3 `ColorScheme` properties (e.g., `onPrimary`, `surfaceContainer`) directly to `BuildContext` for agile theming.
# Conflicts:
#	CHANGELOG.md
#	example/pubspec.lock
#	lib/src/logger/playx_logger.dart
#	lib/src/logger/playx_logger_settings.dart
#	pubspec.lock
#	pubspec.yaml
@basemosama basemosama merged commit fe65204 into main Apr 1, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant