diff --git a/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx b/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx
index c97b763e06d..36c7f08ae47 100644
--- a/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx
+++ b/apps/docs/pages/guides/getting-started/quickstarts/flutter.mdx
@@ -68,7 +68,7 @@ export const meta = {
```yaml pubspec.yaml
- supabase_flutter: ^1.6.2
+ supabase_flutter: ^2.0.0
```
@@ -138,7 +138,7 @@ export const meta = {
class _HomePageState extends State {
final _future = Supabase.instance.client
.from('countries')
- .select>>();
+ .select();
@override
Widget build(BuildContext context) {
diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
index 6143bbb17d2..8be1f9a2f75 100644
--- a/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
+++ b/apps/docs/pages/guides/getting-started/tutorials/with-flutter.mdx
@@ -36,7 +36,7 @@ Then let's install the only additional dependency: [`supabase_flutter`](https://
Copy and paste the following line in your pubspec.yaml to install the package:
```yaml
-supabase_flutter: ^1.10.3
+supabase_flutter: ^2.0.0
```
Run `flutter pub get` to install the dependencies.
@@ -136,7 +136,6 @@ Future main() async {
await Supabase.initialize(
url: 'YOUR_SUPABASE_URL',
anonKey: 'YOUR_SUPABASE_ANON_KEY',
- authFlowType: AuthFlowType.pkce,
);
runApp(MyApp());
}
@@ -144,8 +143,6 @@ Future main() async {
final supabase = Supabase.instance.client;
```
-`AuthFlowType.pkce` on `authFlowType` parameter indicates that we are using a secure [PKCE flow](https://supabase.com/blog/supabase-auth-sso-pkce#introducing-pkce) to perform our magic link login.
-
### Set up Splash Screen
Let's create a splash screen that will be shown to users right after they open the app.
@@ -331,11 +328,8 @@ class _AccountPageState extends State {
try {
final userId = supabase.auth.currentUser!.id;
- final data = await supabase
- .from('profiles')
- .select