
Hi, I will attach an image below from an old tutorial, which I cannot reproduce anymore.

There is no way to create collection with Flutter SDK. You should call a server side Function for creating collection with Flutter

so the code in the image is redandant now?

There is no such Function db.getCollection() for Flutter SDK. You can try like, performing a CRUD on a Collection and if e.code is 404 (No such Collection) then call your Server Function and create new Collection for current user

Please check these Snippets to clear your concept

Hey, The following snippet is used to get the following collection of the given customId. This project uses both Server + client side SDK to do that. (Server Side to create collections and attributes) .
It will take a while to update the code and blogs to latest version (probably end july)
But to create the collection, you can create cloud function that create the collection for you ( you can pass the id in the params when execution from the client side) You can check at this snippet (https://appwrite.io/docs/server/databases?sdk=dart-default#databasesCreateCollection)
Recommended threads
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
- Doing the React TMDB movies tutorial, is...
At the point where I created a brand new app on appwrite but cannot instantiate the react platform without cloning a whole other app and doing some ping button ...
