Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

Flutter Firestore offline setup uses depreciate code #40

Description

@srivats22

In the Flutter Firestore Plugin Using the following code:

await db
        .enablePersistence(const PersistenceSettings(synchronizeTabs: true));

Throws a warning saying enablePersistence is depreciated and should use persistenceEnabled.

// Apple and Android
db.settings = const Settings(persistenceEnabled: true);
// Web
await db
.enablePersistence(const PersistenceSettings(synchronizeTabs: true));

Can the document be updated to reflect this? I can submit a PR for the same if that's ok.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions