Skip to content

Adopt double.maxSafeInteger and minSafeInteger on Dart 3.15 #195202

Open

Description

@kevmoo

SliverMultiBoxAdaptorElement.childCount and OverlayPortalController._wallTime hardcode raw 9007199254740992 (2^53) literals for JavaScript safe-integer bounds because Flutter's minimum Dart SDK constraint predates Dart 3.15's double.maxSafeInteger and double.minSafeInteger (dart-lang/sdk#64491).

Proposed Fix

Once Flutter's minimum Dart SDK constraint reaches 3.15:

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    c: tech-debtTechnical debt, code quality, testing, etc.
    on Oct 23, 2026
  2. added a commit that references this issue on Oct 23, 2026
  3. added
    P1High-priority issues at the top of the work list
    on Oct 27, 2026
  4. justinmc commented on Oct 27, 2026

    @justinmc
    Contributor

    I didn't know we had these APIs, sounds good to me.

  5. kevmoo commented on Oct 27, 2026

    @kevmoo
    ContributorAuthor

    5. I didn't know we had these APIs, sounds good to me.

    I just added them. 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions