The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: bring Flutter more forward instead of Dart
dshukertjr99e53df14199
diff --git a/apps/reference/_supabase_dart/initializing.mdx b/apps/reference/_supabase_dart/initializing.mdxindex e779b7e8ac2..b0d69813f45 100644--- a/apps/reference/_supabase_dart/initializing.mdx+++ b/apps/reference/_supabase_dart/initializing.mdx@@ -7,18 +7,33 @@ slug: initializingimport Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-## Dart+## Flutter-You can initialize a new Supabase client using the `SupabaseClient()` method.+For `supabase-flutter`, you will be using the static `initialize()` method on `Supabase` class.-The Supabase client is your entrypoint to the rest of the Supabase functionality-and is the easiest way to interact with everything we offer within the Supabase ecosystem.+### Flutter `initialize()`-## Flutter+```dart title="main.dart"+Future<void> main() async {+ await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');+ runApp(MyApp());+}+```-For `supabase_flutter`, you will be using the static `initialize()` method on `Supabase` class.+### Access `SupabaseClient` instance-## Examples+Once you initialize Supabase in your `main()` method, you can access the `SupabaseClient` instance from anywhere in your app.++```dart+final supabase = Supabase.instance.client;+```++## Other Dart Projects++You can initialize a new Supabase client using the `SupabaseClient()` method.++The Supabase client is your entrypoint to the rest of the Supabase functionality+and is the easiest way to interact with everything we offer within the Supabase ecosystem.### Dart `SupabaseClient()`@@ -26,11 +41,3 @@ For `supabase_flutter`, you will be using the static `initialize()` method on `Sfinal supabase = SupabaseClient('https://xyzcompany.supabase.co', 'public-anon-key');```-### Flutter `initialize()`--```dart title="main.dart"-Future<void> main() async {- await Supabase.initialize(url: 'https://xyzcompany.supabase.co', anonKey: 'public-anon-key');- runApp(MyApp());-}-```diff --git a/apps/reference/_supabase_dart/installing.mdx b/apps/reference/_supabase_dart/installing.mdxindex 2ed91c356fd..8c49c1fd9f7 100644--- a/apps/reference/_supabase_dart/installing.mdx+++ b/apps/reference/_supabase_dart/installing.mdx@@ -7,25 +7,18 @@ slug: installingimport Tabs from '@theme/Tabs'import TabItem from '@theme/TabItem'-## Dart--Dart libraries are built and supported by the community.--```bash-dart pub add supabase-```--Find the source code on [GitHub](https://github.com/supabase/supabase-dart).-## Flutter-For Flutter project, you can use [supabase_flutter](https://github.com/supabase/supabase-flutter).+For Flutter project, you can use [supabase_flutter](https://pub.dev/packages/supabase_flutter) package.```bashflutter pub add supabase_flutter```-`supabase_flutter` plugin uses `supabase` plugin internally, and it adds some Flutter specific functionality such as handling deeplinks coming back from magic link verifications.-If you are creating a Flutter application, we recommend using `supabase_flutter` instead of `supabase`.+## Other Dart projects++For non-Flutter projects using Dart, such as server-side Dart or Angular-Dart, you can use the [supabase](https://pub.dev/packages/supabase) package.-For the most part `supabase_flutter` shares the same API as `supabase` with few exceptions such as initialization or OAuth sign in.+```bash+dart pub add supabase+```\ No newline at end of filediff --git a/apps/reference/_supabase_dart/intro.mdx b/apps/reference/_supabase_dart/intro.mdxindex f1f68aea552..d728b447d2e 100644--- a/apps/reference/_supabase_dart/intro.mdx+++ b/apps/reference/_supabase_dart/intro.mdx@@ -1,22 +1,14 @@---id: introslug: /-sidebar_label: Supabase Dart Library+sidebar_label: Supabase Flutter Library----# Supabase Dart Library+# Supabase Flutter Library-:::note+This reference documents every object and method available in Supabase's isomorphic Flutter library, [`supabase-flutter`](https://pub.dev/packages/supabase_flutter).-You're viewing the Supabase docs for a developer preview version.--Refer to the `v0` docs for the previous release.--:::--This reference documents every object and method available in Supabase's isomorphic Dart library, `supabase-dart`.--You can use the `supabase-dart` library to:+You can use the `supabase-flutter` library to:- interact with your Postgres database- listen to database changes@@ -24,7 +16,12 @@ You can use the `supabase-dart` library to:- build login and user management functionality- manage large files+## For non-Flutter projects++We also have [supabase-dart](https://github.com/supabase-community/supabase-dart) for non-Flutter Dart projects, such as server-side Dart or Angular-Dart.+supabase-dart shares most of the APIs with supabase-flutter without being dependent on Flutter so that you can use Supabase anywhere you can run Dart!+## Additional Links-- Source Code: [github.com/supabase/supabase-dart](https://github.com/supabase/supabase-dart)+- Source Code: [github.com/supabase/supabase-flutter](https://github.com/supabase/supabase-flutter)- [Known bugs and issues](https://github.com/supabase/supabase-flutter/issues)diff --git a/apps/reference/_supabase_dart_versioned_docs/version-v0/intro.mdx b/apps/reference/_supabase_dart_versioned_docs/version-v0/intro.mdxindex 29286743efb..ed80828fa05 100644--- a/apps/reference/_supabase_dart_versioned_docs/version-v0/intro.mdx+++ b/apps/reference/_supabase_dart_versioned_docs/version-v0/intro.mdx@@ -6,6 +6,11 @@ sidebar_label: Supabase Dart Library# Supabase Dart Library+:::caution+You're viewing the docs for an older version of the `supabase-flutter` library.+:::++This reference documents every object and method available in Supabase's isomorphic Dart library, `supabase-dart`.You can use the `supabase-dart` library to:diff --git a/apps/reference/docusaurus.config.js b/apps/reference/docusaurus.config.jsindex ba1093b6fb0..ce689592244 100644--- a/apps/reference/docusaurus.config.js+++ b/apps/reference/docusaurus.config.js@@ -90,11 +90,10 @@ const config = {breadcrumbs: false,editUrl:'https://github.com/supabase/supabase/edit/master/apps/reference/',- lastVersion: 'v0',+ lastVersion: 'current',versions: {current: {- label: 'v1-dev',- path: '/next',+ label: 'v1',},v0: {label: 'v0',