The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: added instructions to check that the bucket is set to public in flutter quickstarter
dshukertjr4c5b5e0fa96d
diff --git a/web/docs/guides/with-flutter.mdx b/web/docs/guides/with-flutter.mdxindex 46239642c2c..e09b50f1e8d 100644--- a/web/docs/guides/with-flutter.mdx+++ b/web/docs/guides/with-flutter.mdx@@ -152,7 +152,7 @@ flutter create supabase_quickstartThen let's install the only additional dependency: [`supabase_flutter`](https://github.com/supabase/supabase-flutter)-Run the following command to get the newest version of `supabase_flutter` to your project.+Run the following command to get the newest version of `supabase_flutter` to your project.```bashflutter pub add supabase_flutter@@ -307,8 +307,8 @@ class AuthRequiredState<T extends StatefulWidget>}```-Let's also create a constant file to make it easier to use Supabase client.-We will also include an extension method declaration to call `showSnackBar` with one line of code.+Let's also create a constant file to make it easier to use Supabase client.+We will also include an extension method declaration to call `showSnackBar` with one line of code.```dart title="lib/utils/constants.dart"import 'package:flutter/material.dart';@@ -639,12 +639,17 @@ And then open the browser to [localhost:3000](http://localhost:3000) and you sho-## Bonus: Profile photos-Every Supabase project is configured with [Storage](/docs/guides/storage) for managing large files like+Every Supabase project is configured with [Storage](/docs/guides/storage) for managing large files likephotos and videos.+### Making sure we have a public bucket++We will be storing the image as a publicly sharable image.+Make sure your `avatars` bucket is set to public, and if it is not, change the publicity by clicking the dot menu that appears when you hover over the bucket name.+You should see an orange `Public` badge next to your bucket name if your bucket is set to public.+### Adding image uploading feature to Account pageWe will use [`image_picker`](https://pub.dev/packages/image_picker) plugin to select an image from the device.@@ -655,14 +660,14 @@ Run the following command to install it.flutter pub add image_picker```-Using [`image_picker`](https://pub.dev/packages/image_picker) requires some additional preparation depending on the platform.-Follow the instruction on README.md of [`image_picker`](https://pub.dev/packages/image_picker) on how to set it up for the platform you are using.+Using [`image_picker`](https://pub.dev/packages/image_picker) requires some additional preparation depending on the platform.+Follow the instruction on README.md of [`image_picker`](https://pub.dev/packages/image_picker) on how to set it up for the platform you are using.Once you are done with all of the above, it is time to dive into coding.### Create an upload widget-Let's create an avatar for the user so that they can upload a profile photo.+Let's create an avatar for the user so that they can upload a profile photo.We can start by creating a new component:```dart title="lib/components/avatar.dart"@@ -748,7 +753,6 @@ class _AvatarState extends State<Avatar> {}```-### Add the new widgetAnd then we can add the widget to the Account page as well as some logic to update the `avatar_url` whenever the user uploads a new avatar.