Installing and configuring Appwrite’s SDK for Flutter
Integrating Appwrite in Flutter applications is very simple using the official Flutter SDK. So, in this section, we are going to install and configure Appwrite’s Flutter SDK in our application by following these steps:
- First, let’s add the Appwrite package under
dependencies
in thepubspec.yml
file:dependencies: appwrite: ^8.0.0
Remember to run flutter pub get
if it’s not automatically run by the IDE to get the dependencies.
- Next, we will import and configure Appwrite’s SDK. We will do that by creating the
lib/infrastructure/res/appwrite.service.dart
file:import 'package:appwrite/appwrite.dart';
- Configure the SDK by providing the endpoint and project ID. You should be able to get both of these values for your Appwrite installation from your console, as we saw in the previous section:
class AppwriteService { static AppwriteService...