Sample App using Flutter and Supabase.
Works with to do examples given in the Supabase repo examples.
- Create new project Sign up to Supabase - https://app.supabase.io and create a new project. Wait for your database to start.
- Run "Todo List" Quickstart Once your database has started, run the "Todo List" quickstart. Inside of your project, enter the SQL editor tab and scroll down until you see TODO LIST: Build a basic todo list with Row Level Security.
- Get the URL and Key Go to the Project Settings (the cog icon), open the API tab, and find your API URL and anon key, you'll need these in the next step.
- Copy
lib/config-example.dart
tolib/config.dart
, add the values forsupabaseUrl
andsupabaseUrl
from Step 3.
For realtime updates to work, enable them in your project by going to Database->Replication.
- Make sure insert, update, and delete are on.
- Click under "source", and make sure the
todos
table is enabled.