Celebrating 10 years in web hosting [email protected]

Getting Started for Flutter

App write is a platform that provides the easiest powerful API development and management console to get your upcoming project running quickly.

Create Your First Appwrite Project

Open the new Appwrite console, and once inside, click the icon in the top navigation header or on the ‘Create Project’ button on your console homepage.

Choose and click create.

Add your Flutter Platform

To init your SDK and begin interaction with Appwrite services, you have to add a new Flutter platform to your project.

If you want to add a new platform, go to your Appwrite console, select the project you created in the step before, and click on the ‘Add Platform’ button.

You can use the given options, select one to add a new Flutter platform and add your app credentials.

app writer command

Android

For Android first, add your app name and then package deal name, your package deal name is usually the application ID in your app-level build. gradle file.

By registering your new app platform, you are permitting your app to communicate with the Appwrite API.

IOS

For iOS first, add your app name and Bundle ID, You can locate your Bundle Identifier in the General tab for your app’s main target in Xcode.

Linux

For Linux add your app name and package deal name, your package deal name is usually the name in your pubspec.yaml file.

Mac OS

For Mac OS add your app name and Bundle ID, You can locate your Bundle Identifier in the General tab for your app’s main target in Xcode.

Web

Appwrite 0.7, and the Appwrite Flutter SDK 0.3.0 have additional help for Flutter Web.

To build website apps that combine with Appwrite successfully, all you have to do is add a web-based platform on your Appwrite project’s dashboard and list the domain your web will use to permit communication to the Appwrite API.

Windows

For Windows add your app name and package deal name, your package deal name is commonly the name in your pubspec.yaml file.

Get Appwrite Flutter SDK

You have to Add Appwrite SDK to your package’s pubspec.yaml file (view example):

app writer API

You are also able to install the SDK using the Dart package manager from your terminal:

Pub app writer

Init your SDK

set project app writer

Initialize your SDK code with your project ID, which can determine on your project settings page.

Before you start to send any API calls to your new Appwrite instance.

Make sure your Android or iOS emulators have network get access to the Appwrite server hostname or IP address.

When trying to connect to Appwrite from an emulator or a cellular device.

Localhost is the hostname for the system or emulator and not your local Appwrite instance.

You should substitute localhost with your IP as the Appwrite endpoint’s hostname.

You can additionally use a service like ngrok to proxy the Appwrite API.

Make Your First Request

Once your SDK object is set, get access to any of the App-write services and select any request to send.

Full documentation for any service technique you would like to use can be found in your SDK documentation or the API References part.