Skip to content

Flutter Firestore offline setup uses depreciate code #40

@srivats22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions