appwrite library
Appwrite Flutter SDK
This SDK targets Appwrite server version 2.7.x as shipped on Appwrite Cloud. Self-hosted releases can lag behind Cloud — if you run an older self-hosted build, use a matching older SDK from previous releases when APIs differ.
Classes
- Account
- The Account service allows you to authenticate and manage a user account.
- Analytics
- Apps
- The Apps service allows you to manage OAuth2 applications, their keys, secrets, scopes, and installations.
- Avatars
- The Avatars service aims to help you complete everyday tasks related to your app image, icons, and avatars.
-
Channel<
T> - Channel class with generic type parameter for type-safe method chaining
- Client
- Client that handles requests to Appwrite.
- Databases
- The Databases service allows you to create structured collections of documents, query and filter lists of documents
- DocumentsDB
- Functions
- The Functions Service allows you view, create and manage your Cloud Functions.
- Graphql
- The GraphQL API allows you to query and mutate your Appwrite server using GraphQL.
- ID
- Helper class to generate ID strings for resources.
- InputFile
- Helper class to handle files.
- Locale
- The Locale service allows you to customize your app based on your users' location.
- Messaging
- The Messaging service allows you to send messages to any provider type (SMTP, push notification, SMS, etc.).
- Oauth2
- The OAuth2 service allows you to authorize apps and issue standards-based OAuth2 and OpenID Connect tokens.
- Operator
- Helper class to generate operator strings for atomic operations.
- Organization
- The Organization service allows you to manage organization-level projects.
- Permission
- Helper class to generate permission strings for resources.
- Presences
- The Presences service allows you to track and manage real-time user presence in your project.
- Push
- Appwrite native push service — the realtime analog delivered over an MQTT broker, without FCM or APNS. While the app is alive the connection stays open and each message is handed to your callback; a subscription can also opt into background delivery (a notification per message, and on mobile continued delivery while the app is backgrounded or closed).
- PushBackgroundStatus
- What Android background delivery can rely on; see Push.backgroundStatus.
- PushMessage
- A message delivered on a subscribed topic — the MQTT push analog of a realtime event.
- PushNotificationOpened
- A background notification the user tapped; see Push.getInitialNotification and Push.onNotificationOpened.
- PushSubscription
- Handle for a live subscription created with Push.subscribe.
- Query
- Helper class to generate query strings.
- QueryBuilder
- Fluent collector of query strings. Call build to produce the list expected by list methods.
- Realtime
- Realtime allows you to listen to any events on the server-side in realtime using the subscribe method.
- RealtimeMessage
- Realtime Message
- RealtimeSubscription
- Realtime Subscription
-
Response<
T> - Appwrite Response
- Role
- Helper class to generate role strings for Permission.
- Storage
- The Storage service allows you to manage your project files.
- TablesDB
- The TablesDB service allows you to create structured tables of columns, query and filter lists of rows
- Teams
- The Teams service allows you to group users of your project and to enable them to share read and write access to your project resources
- Topic
-
Helper to build MQTT topics for
Push, level by level. - Tracking
-
Auto-tracking helpers for the generated Analytics service: install, update
and app-lifecycle events, push helpers, and manual
screenView/eventcalls, all sent throughAnalytics.createEvent. - TrackingObserver
- NavigatorObserver that fires an analytics event through a Tracking every time a named route is pushed, popped-back-to, replaced or removed.
- UploadProgress
- Progress of a File Upload
- VectorsDB
- Videos
- The Videos service allows you to transcode video files into adaptive HLS and DASH streams.
Enums
- Condition
- Filter condition for array operations
Extensions
-
BucketChannel
on Channel<
_Bucket> - Only available on Channel<_Bucket>
-
CollectionChannel
on Channel<
_Collection> - Only available on Channel<_Collection>
-
DatabaseChannel
on Channel<
_Database> - Only available on Channel<_Database>
-
DocumentChannel
on Channel<
_Document> - Only available on Channel<_Document>
-
FileChannel
on Channel<
_File> - Only available on Channel<_File>
-
MembershipChannel
on Channel<
_Membership> - Only available on Channel<_Membership>
-
PresenceChannel
on Channel<
_Presence> - Only available on Channel<_Presence>
-
RowChannel
on Channel<
_Row> - Only available on Channel<_Row>
-
TableChannel
on Channel<
_Table> - Only available on Channel<_Table>
-
TablesDBChannel
on Channel<
_TablesDB> - Only available on Channel<_TablesDB>
-
TeamChannel
on Channel<
_Team> - Only available on Channel<_Team>
- TopicLevels on Topic
-
Appends levels to a Topic:
Topic.path(['user']).path(['notification']).
Functions
-
defaultScreenNameExtractor(
Route route) → String? -
Default ScreenNameExtractor — uses RouteSettings.name when present and
falls back to
null(route is skipped) otherwise. Anonymous routes are generally noise for analytics, so opting out by default keeps dashboards clean.
Typedefs
- PushCallback = void Function(PushMessage message)
- A callback invoked for every message delivered on a subscribed topic.
- ScreenNameExtractor = String? Function(Route route)
- Signature used to derive a screen name from a Route.
Exceptions / Errors
- AppwriteException
- Exception thrown by the appwrite package.