You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Flutter Data is an offline-first data framework with a customizable REST client
30
30
31
31
## 👩🏾💻 Quick introduction
32
32
33
-
In Flutter Data, every model gets is adapter. These adapters can be extended by mixing in custom adapters.
33
+
In Flutter Data, every model gets its default adapter. These adapters can be extended by mixing in custom adapters.
34
34
35
35
Annotate a model with `@DataAdapter` and pass a custom adapter:
36
36
@@ -150,6 +150,11 @@ Fully compatible with the tools we know and love:
150
150
151
151
-[Drexbible](https://snapcraft.io/drexbible)
152
152
153
+
## 🚨 BREAKING CHANGES IN 2.0
154
+
155
+
- All methods are now directly on `Adapter`, there is no `Repository`, `RemoteAdapter` or `LocalAdapter`. Any method you are looking for is probably on `Adapter`, for example, `findAll` from `LocalAdapter` is now called `findAllLocal`
156
+
- For initialization we no longer call the `configure...` method on the Riverpod overrides, we just do `localStorageProvider.overrideWithValue` and pass a `LocalStorage` instance; the actual initialization is done via `initializeFlutterData` which needs an adapter map. An `adapterProvidersMap` is conveniently code-generated and available on `main.data.dart`
0 commit comments