PackageTrack
Sign in Get early access

playx_core

Core package for playx eco system contains shared classes and utilities.

1.0.0 3.1K downloads/mo #4562 most downloaded on pub.dev playx-flutter/playx_core

What this package is like to depend on

Last release 4 months ago

01 Apr 2026

Ships fairly regularly

a new release about every 2 months

Most releases are documented

notes for 29 of 36 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

42 releases · first in 2022

3 releases in the last 12 months

see the full history below

Release timeline

42 releases · Aug 2022 to Apr 2026
2023 2024 2025 2026
Release Pre-release

Releases

latest 42
  1. 1.0.0 01 Apr 2026
    Release notes
    • 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.
    Open source →
  2. 1.0.0-beta.6 17 Nov 2025 pre-release

    Nothing published for this version

  3. 1.0.0-beta.5 29 Jun 2025 pre-release

    Nothing published for this version

  4. 1.0.0-beta.4 29 Jun 2025 pre-release

    Nothing published for this version

  5. 1.0.0-beta.3 19 Jan 2025 pre-release

    Nothing published for this version

  6. 1.0.0-beta.2 19 Jan 2025 pre-release

    Nothing published for this version

  7. 1.0.0-beta.1 08 Jan 2025 pre-release

    Nothing published for this version

  8. 0.7.4 17 Nov 2025
    Release notes
    • Update packages
    • Add new asTOr and asT safe json convert functions.

    1.0.0-beta.4 - 1.0.0-beta.5

    • Added v0.7.0 changes.

    1.0.0-beta.3

    • Add new printError param to **MapUtils** mapAsync and mapAsyncInIsolate methods to determine whether to print errors or not.
    • Update asyncMapInIsolate in NestedIterablesExtensions to include a printError parameter and printEachItemError parameter to determine whether to print errors for each item or not.
    Open source →
  9. 0.7.3 29 Jun 2025

    Nothing published for this version

  10. 0.7.2 29 Jun 2025

    Nothing published for this version

  11. 0.7.1 29 Jun 2025

    Nothing published for this version

  12. 0.7.0 19 May 2025
    Release notes

    Note: This release has breaking changes.

    ✨ Features

    • New System Utilities (common_utils.dart)

      • setNavigationBarColor: Set navigation bar color and icon brightness.
      • setOrientation: Lock screen orientation with optional rotation.
      • hideKeyboard / showKeyboard: Control keyboard visibility.
      • enterFullScreen / exitFullScreen: Toggle immersive full-screen mode.
      • copyToClipboard / getClipboardText / clearClipboard: Manage clipboard content.
      • setStatusBarColor now sets statusBarBrightness for improved iOS support.

    🧠 Type Conversion Enhancements

    • Safe Conversion Utilities (safe_convert.dart & safe_json_convert.dart)

      • Added:

        • toNumOrNull, toNumOr, toNum
        • toDateTimeOrNull, toDateTimeOr, toDateTime
        • toLocalDateTimeOrNull, toLocalDateTimeOr, toLocalDateTime
      • Improved:

        • List conversion with optional fromJson
        • Renamed generic list conversion functions for consistency:
          • toListOrNullT → toListOrNull
          • toListTOr → toListOr
          • oListT → toList
        • Map conversion support for generic types (<T, S>)
        • asTOrNull: Now cleaner and more robust
      • Refactored for consistency, better error handling, and improved documentation.


    🚀 **New Logging System ** 🔥

    This version introduces a modern, powerful, and highly configurable logging system using the talker_logger package.

    What's New

    • 🔄 Replaced old PlayxLogger with a modular and extensible system.

    🧱 Core Components

    • PlayxBaseLogger: Abstract base for all logger implementations.
    • TalkerPlayxLogger: Concrete logger using talker_logger, supports customization (name, colors, log levels, filters, formatters).
    • PlayxLoggerSettings: Configure behavior globally (log level, console output, filters, etc.).
    • PlayxLogger: Static utility class to manage and use named logger instances.

    🔧 Integration Highlights

    • PlayxCore now initializes a default logger named 'PLAYX CORE' on setup.

    • Internal operations like preference booting, environment loading, and error tracking now leverage the enhanced logger:

      PlayxLogger.d('Debug message');
      PlayxCore.logger.error('An error occurred', error:error);
      
    • Existing utilities (MapperUtilities, IterableExtensions) now use the new logger for standardized logging.

    🧩 Dependency

    • Added: talker_logger: ^4.7.7 to pubspec.yaml.

    Open source →
  13. 0.6.3 23 Feb 2025

    Nothing published for this version

  14. 0.6.2 23 Feb 2025
    Release notes
    • Update packages.
    • Updates minimum supported SDK version to Flutter 3.24/Dart 3.5.
    Open source →
  15. 0.6.1 19 Jan 2025
    Release notes
    • Add new printError param to **MapUtils** mapAsync and mapAsyncInIsolate methods to determine whether to print errors or not.
    • Update asyncMapInIsolate in NestedIterablesExtensions to include a printError parameter and printEachItemError parameter to determine whether to print errors for each item or not.
    Open source →
  16. 0.6.0 19 Jan 2025
    Release notes

    Note: This release has breaking changes.

    Breaking Changes

    • MapUtils
      • mapAsync and mapAsyncInIsolate now require the following parameters:
        • T data: The data to be mapped.
        • Mapper<T, S> mapper: A required named parameter for the transformation logic.
    • Extensions on Iterable<T>
      • Updated asyncMap and asyncMapInIsolate to require Mapper<T, S> mapper as a named parameter.
      • NestedIterablesExtensions<T>:
        • Deprecated asyncFlatMap. Use flatMapAsync instead.
        • Updated flatMap and flatMapAsync to require Mapper<T, S> mapper as a named parameter.

    New Features

    • MapUtils
      • Enhanced mapAsyncInIsolate to map items in an isolate using workerManager by default.
      • Added a new useWorkManager parameter:
        • If true, uses workerManager to execute tasks.
        • If false, falls back to the compute method.
    • Playx Core (bootCore)
      • Introduced new settings:
        • PlayxPrefsSettings: Handles configurations for createPlayxPrefs, createPlayxAsyncPrefs, and createPlayxPrefsWithCache methods, which are now moved from the bootCore method.
        • WorkManagerSettings: Supports additional configurations in the bootCore method.
    • PlayxSecurePrefsSettings
      • Added a createSecurePrefs parameter to control the creation of secure storage during the boot process.

    Refactor

    • MapAsync Extension:
      • Updated the mapAsync and mapAsyncInIsolate methods in the MapAsync<T> extension:
        • mapAsync now takes a Mapper<T, S> mapper as a required named parameter.
        • mapAsyncInIsolate now includes the following parameters:
          • Mapper<T, S> mapper: Required transformation logic.
          • bool useWorkManager: Defaults to true. Specifies whether to use workerManager or compute.
    Open source →
  17. 0.5.5 08 Jan 2025
    Release notes
    • refactor: Update packages.
    • fix: getDouble method in PlayxPrefs and PlayxAsyncPrefs return double not double or null.
    • feat: Add ColorExtensions to convert color to hex string.
    Open source →
  18. 0.5.4 06 Nov 2024
    Release notes
    • refactor: Update packages.
    • refactor: Update safe_convert methods asIntOr, asDoubleOr, asBoolOr, asStringOr, asListOr, asMapOr, asListTOr, asListTFromJsonOr, asListIntOr, asListStringOr, asTOr to take dynamic json instead of a Map<String,dynamic> json value.
    • refactor: Move json safe convert functions to a new file
    • feat: Add new tests for the package.
    Open source →
  19. 0.5.3 10 Oct 2024
    Release notes

    Note: This release has breaking changes.

    • Update packages.
    • Update safe_convert methods
      • asInt, asDouble, asBool, asString and asList, asMap, asListT, asListTFromJson ,asListInt, asListString, asT now throws FormatException if the result was invalid.
      • Added asIntOr, asDoubleOr, asBoolOr, asStringOr, asListOr, asMapOr, asListTOr, asListTFromJsonOr, asListIntOr, asListStringOr, asTOr methods to provide a fallback value if the result was invalid.
      • Added new asListTFromJson method to convert a list of dynamic values to a list of a specific type.
      • Added new fromJson to asTOrNull, asT and asTOr.
    • Add new Map utilities functions to map objects in isolate.
    Open source →
  20. 0.5.2 22 Aug 2024

    Nothing published for this version

  21. 0.5.1 22 Aug 2024
    Release notes
    • Update Readme
    Open source →
  22. 0.5.0 22 Aug 2024
    Release notes
    • Update packages.
    • Added PlayxAsyncPrefs for non-blocking shared preferences handling.
    • Introduced PlayxPrefsWithCache for faster data retrieval with in-memory caching.
    • Updated PlayxCore.bootCore() to include options for initializing the new preference classes.
    • Added GetIt integration for dependency injection management.
    • Updated PlayxCore to include GetIt instance management.
    • Added new PlayxPlatform class to provide platform-specific utilities.
    • Remove GetX dependency from the package.
    • Remove Scope Functions from the package as there is no need for them in flutter and can be implemented if needed by a separate package.
    Open source →
  23. 0.4.3 08 Jul 2024
    Release notes
    • Update packages.
    • Add a new clearOnReinstall method to PlayxSecurePrefs to clear all the keys stored in the secure prefs when the app is reinstalled.
    • Add a new clearOnReinstall parameter to PlayxSecurePrefsSettings to clear all the keys stored in the secure prefs when the app is reinstalled which is set to true by default.
    Open source →
  24. 0.4.2 15 May 2024
    Release notes
    • Update packages.
    Open source →
  25. 0.4.1 18 Mar 2024
    Release notes
    • Add Tests for the package.
    • Remove functions that check date weekDay and month from DateExtensionsand replace them with dayOfTheWeek() and monthOfTheYear().
    • Add new ColorExtensions and ColorUtils to create custom utilities for colors.
    • Update DurationExtensions to optimize duration extensions and formatting durations.
    • Add new IterableExtensions to add extensions like lastWhereOrNull, lastWhereOr, firstWhereOr to Iterables.
    • Update PlayxEnv to not require a .env file to be present in the project when isOptional is set true.
    • Add new FutureExtensions Extensions on [Future] to provide additional functionality.`
    Open source →
  26. 0.3.4 20 Feb 2024
    Release notes
    • Remove flutter_readable package from dependencies.
    • Add more extensions to the package.
    • Add safe convert methods to PlayxCore to convert safely convert any dynamic value to the correct type.
    Open source →
  27. 0.3.3 29 Nov 2023
    Release notes
    • Update exports.
    Open source →
  28. 0.3.2 28 Nov 2023
    Release notes
    • Update exports.
    Open source →
  29. 0.3.1 26 Nov 2023
    Release notes

    Note: This release has breaking changes.

    BREAKING Changes

    • PlayXCore was renamed to PlayxCore.

    New features

    • Added new IterableExtensions to add extensions like flatten, flatMap, flatAsyncMap to Iterables.
    • Added new Kotlin inspired scope functions to PlayxCore like also, let, run, takeIf and takeUnless.
    • Added new toBoolean extension to String to convert string to boolean.\
    • Added new example app to demonstrate the PlayxCore features.
    Open source →
  30. 0.2.0 12 Oct 2023
    Release notes

    Note: This release has breaking changes.

    BREAKING Changes

    • Prefs was renamed to PlayxPrefs.
    • SecurePrefs was renamed to PlayxSecurePrefs.
    • SecurePrefsSettings was renamed to PlayxSecurePrefsSettings.
    • getString, getInt, getDouble and getBool methods in PlayxPrefs now return non nullable value of it's type with the ability to provide it with a fallback that is returned if the key not found .
    • getString, getInt, getDouble and getBool methods in PlayxSecurePrefsSettings now return non nullable value of it's type with the ability to provide it with a fallback that is returned if the key not found .

    New features

    • Update packages.
    • Added PlayxEnv : Wrapper for configure any the application with global variables using a .env file`.
    • Update PlayxCore bootCore method to take PlayxEnvSettings parameter which is used to configure flutter_dotenv and load the .env file.
    • Added new maybeGetString, maybeGetInt, maybeGetDouble and maybeGetBool methods in PlayxPrefs which return the value of it's type or null if the key not found or any error happened .
    • maybeGetString, maybeGetInt, maybeGetDouble and maybeGetBool methods in PlayxSecurePrefsSettings which return the value of it's type or null if the key not found or any error happened .
    Open source →
  31. 0.1.2 24 Jul 2023
    Release notes
    • Move Intl package, DateExtensions and NumExtensions to playx_localization package.
    Open source →
  32. 0.1.1 19 Jul 2023
    Release notes
    • update packages and exports.
    Open source →
  33. 0.1.0 14 Jul 2023
    Release notes
    • Enhancements to SecurePrefs.
    Open source →
  34. 0.0.9 13 Jul 2023

    Nothing published for this version

  35. 0.0.8 12 Jul 2023

    Nothing published for this version

  36. 0.0.7 12 Jul 2023
    Release notes
    • Add SecurePrefs to be able to store encrypted keys in the device.
    • Upgrade Packages.
    Open source →
  37. 0.0.6 18 Jun 2023
    Release notes
    • Add format extension for strings to format stings.
    Open source →
  38. 0.0.5 22 May 2023
    Release notes
    • Add support for Dart 3.0.0 and Flutter 3.10
    • Upgrade Packages.
    • Add multiple extensions like DateExtensions, DurationExtensions , NumDurationExtensions and NumExtensions.
    • Add common utilities.
    Open source →
  39. 0.0.4 01 May 2023
    Release notes
    • update Readme
    Open source →
  40. 0.0.3 01 May 2023
    Release notes
    • update packages
    Open source →
  41. 0.0.2 03 Oct 2022
    Release notes
    • fix typos
    • add capitalizeFirstChar(String str)
    • add capitalizeFirstCharForEachWord(String str)
    Open source →
  42. 0.0.1 11 Aug 2022
    Release notes
    • initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive