snippets-flutter icon indicating copy to clipboard operation
snippets-flutter copied to clipboard

Flutter Firestore offline setup uses depreciate code

Open srivats22 opened this issue 1 year ago • 0 comments

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.

https://github.com/firebase/snippets-flutter/blob/0428b747c6033ef1f5e27d65e64bb6ed2d533bda/packages/firebase_snippets_app/lib/snippets/firestore.dart#L1072-L1077

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

srivats22 avatar Dec 01 '24 16:12 srivats22