Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: Ppdate Flutter auth UI docs to be up to date (#21691)

Tyler68513fd61863
diff --git a/apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx b/apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx
index a9549822959..7abbc5e22ac 100644
--- a/apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx
+++ b/apps/docs/content/guides/auth/auth-helpers/flutter-auth-ui.mdx
@@ -7,17 +7,14 @@ description: 'Prebuilt, customizable Flutter widgets for authenticating users.'
Flutter Auth UI is a Flutter package containing pre-built widgets for authenticating users.
It is unstyled and can match your brand and aesthetic.
-<image src="https://raw.githubusercontent.com/supabase-community/flutter-auth-ui/main/assets/supabase_auth_ui.png" />
+![Flutter Auth UI](https://raw.githubusercontent.com/supabase-community/flutter-auth-ui/main/screenshots/supabase_auth_ui.png)
## Add Flutter Auth UI
Add the latest version of the package [supabase-auth-ui](https://pub.dev/packages/supabase_auth_ui) to pubspec.yaml:
-```yaml
-dependencies:
- flutter:
- sdk: flutter
- supabase_auth_ui: ^0.1.0+2
+```bash
+flutter pub add supabase_auth_ui
```
### Initialize the Flutter Auth package
@@ -93,9 +90,9 @@ Use SupaPhoneAuth to create a phone authentication form.
```dart
SupaPhoneAuth(
- authAction: SupaAuthAction.signUp,
- onSuccess: (AuthResponse response) {},
- ),
+ authAction: SupaAuthAction.signUp,
+ onSuccess: (AuthResponse response) {},
+),
```
### Social Auth
@@ -107,13 +104,13 @@ Use SupaSocialsAuth to create list of social login buttons.
```dart
SupaSocialsAuth(
socialProviders: [
- SocialProviders.apple,
- SocialProviders.google,
+ OAuthProvider.apple,
+ OAuthProvider.google,
],
colored: true,
redirectUrl: kIsWeb
- ? null
- : 'io.mydomain.myapp://callback',
+ ? null
+ : 'io.mydomain.myapp://callback',
onSuccess: (Session response) {},
onError: (error) {},
)