Skip to content

DragTarget crash if Draggable data field is not set, but data is not required. #84816

@MousyBusiness

Description

@MousyBusiness

DragTarget crashes if Draggable data field is not set, but data is not required.

image

Specifically the issue is in didDrop in drag_target.dart which asserts data is not null:
image

Suggestion

Make data field required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: null-safetySupport for Dart's null safety featurec: crashStack traces logged to the consolef: material designflutter/packages/flutter/material repository.found in release: 2.3Found to occur in 2.3frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions