Skip to content

[shared_preferences] Example on pub.dev throws LateInitializationError: Field '_counter' has not been initialized. on startup #164949

@neiljaywarner

Description

@neiljaywarner

copy pasting the example tab from pub.dev into dartpad gives red scree causes
LateInitializationError: Field '_counter' has not been
initialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: error messageError messages from the Flutter frameworkd: examplesSample code and demosfound in release: 3.29Found to occur in 3.29found in release: 3.30Found to occur in 3.30good first issueRelatively approachable for first-time contributorshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: shared_preferencesPlugin to read and write Shared Preferencesr: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions