PackageTrack
Sign in Get early access

extensions_core

Extensions for dart and flutter

0.0.4 2.8K downloads/mo #4778 most downloaded on pub.dev LeanQChris/extensions

What this package is like to depend on

Last release 20 days ago

04 Aug 2026

Ships fairly regularly

a new release about every 10 months

Some releases are documented

notes for 1 of 4 stable releases

Nothing withdrawn

no release was ever pulled

2 years old

4 releases · first in 2024

1 release in the last 12 months

see the full history below

Release timeline

4 releases · Dec 2024 to Aug 2026
2025 2026
Release Pre-release

Releases

latest 4
  1. 0.0.4 04 Aug 2026
    Release notes

    Added

    • New extension files:
      • object.dart: let, also, run, isNull, isNotNull
      • duration.dart: inWeeks, format()
      • edge_insets.dart: EdgeInsets.copyWith()
      • form_validators.dart: requiredField, emailValidator, phoneValidator, minLengthValidator, maxLengthValidator
    • String: case conversion (toCamelCase, toPascalCase, toSnakeCase, toKebabCase), safe parsing (toIntSafe, toDoubleSafe, toBool), slicing (before, after, between, replaceLast, countOccurrences), isNullOrEmpty (nullable), slugify, collapseWhitespace, initials, masked, isStrongPassword, containsSpecialCharacter, isAlphanumeric, isJson, onlyDigits, withoutDigits
    • Number/int: isPositive, isZero, isDivisibleBy, percentageOf, formatBytes, isEven, isOdd, ordinal, toBinary, toOctal, toHex
    • DateTime: isTomorrow, isSameDay/Month/Year, isBetween, isWeekend, isWeekday, isLeapYear, quarter, startOf/endOf (day, week, month, year), tomorrow, yesterday, copyWith, ageInYears
    • Iterable: distinctBy, countWhere, containsAll, containsAny, zip, unzip, flatten, insertBetween; sum, min, max, average on Iterable<num>
    • List: rotate
    • Map: invert, getOrPut, merge, pick, omit, filterKeys, filterValues, keysOf
    • Color: colorFromHex(), darken, lighten, inverse, complementary, hue, saturation, brightness, withBrightness, isTransparent, toMaterialColor
    • BuildContext: mediaQuery, safePadding, locale, textDirection, orientation, isPortrait, isLandscape, devicePixelRatio, textScaler, hideKeyboard
    • Widget: margin, background, border, tooltip, onLongPress, onDoubleTap, inkWell, visible, safeArea, blur, rotated, scaled, constrained, aspectRatio, width, height
    • Navigation: canPop, maybePop, popWithResult, popToFirst, currentRouteName, pushWithSlide, showSheet, showAppDialog
    • File: isImage, isVideo, isAudio, sizeInMB, readAsStringSafe

    Changed

    • Public types PlatformInfo / TargetPlatformInfo replace the private _Platform / _TargetPlatform (accessible from app code).
    • Minimum Flutter raised to >=3.27.0 for the modern wide-gamut Color API.
    • Removed unused dev dependencies (path_provider, mocktail).

    Fixed

    • Color.toHex() returned incorrect values on Flutter ≥3.27 (alpha/red/green/blue now return 0–255, breaking the old math); now uses the a/r/g/b accessors.
    • File.sizeFormatted() crashed on empty files (log(0)-inf); now returns 0 B.

    Tests

    • Added test/extensions_test.dart covering all new extensions (36 tests).

    Open source →
  2. 0.0.3 09 Jun 2025

    Nothing published for this version

  3. 0.0.2 17 Dec 2024

    Nothing published for this version

  4. 0.0.1 17 Dec 2024

    Nothing published for this version

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