Atlas Device SDK for Flutter
Utilice el SDK de dispositivos Atlas para Flutter para escribir aplicaciones cliente en DartPara la plataforma Flutter. Lea y escriba datos en dispositivos, sincronice datos con Atlas y use los servicios de aplicaciones de Atlas.
Get Started with the Flutter SDK
Inicio rápido
Minimal-explanation code examples of how to work with the Flutter SDK.
Working Example App
Learn by example through dissecting a working app that uses the Flutter SDK.
Guided Tutorial
Sigue un tutorial guiado para aprender a adaptar la aplicación de ejemplo y así crear tu propia aplicación funcional.
Develop Apps with the SDK
Use the SDK's open-source database - Realm - as an object store on the device. Use Device Sync to keep data in sync with your MongoDB Atlas cluster and other clients.
Install the Flutter SDK
To get started, install the Flutter SDK. Then, import the SDK in your project files.
Define an Object Schema
Use Dart to idiomatically define an object schema.
Configure & Open a Database
You can configure your database to do things like populate initial data on load, use an encryption key to secure data, and more. To begin working with your data, configure and open a database.
Lectura y escritura de datos
Puedes crear, leer, actualizar y borrar objetos de la base de datos en el dispositivo. Construir consultas complejas para filtrar datos.
React to Changes
Live objects mean that your data is always up-to-date. Register a change listener to react to changes and perform logic like updating your UI.
_Spot.webp)
Configura Atlas Device Sync
Configure Device Sync in an App Services App. Define data access rules or use Development Mode to infer a schema from your client's data model.
Connect to an Atlas App Services App
To use the App Services App with Device Sync in your Flutter app, connect to the backend App.
Authenticate a User
App Services provides access to custom JWT authentication, our built-in email/password provider, anonymous authentication, and popular authentication providers like Apple, Google, and Facebook. Use these providers to authenticate a user in your client.
Abrir una base de datos sincronizada
Para comenzar a sincronizar datos, abre una base de datos sincronizada. Para determinar qué datos puede leer y escribir una base de datos sincronizada, suscribirse a una query.
Leer y guardar datos sincronizados
Las API para leer y guardar datos son las mismas, ya sea que estés usando una base de datos sincronizada o no sincronizada. Los datos que lees y guardas se mantienen automáticamente sincronizados con tu clúster de Atlas y otros clientes. Las aplicaciones siguen funcionando sin conexión y sincronizan los cambios cada vez que hay una conexión de red disponible.
_Spot.webp)
Call Serverless Functions
Se pueden llamar funciones sin servidor de Atlas que se ejecutan en un backend de aplicación Services desde tu aplicación cliente.
Authenticate Users
Authenticate users with built-in and third-party authentication providers. Use the authenticated user to access App Services.

Lectura Recomendada
Referencia de la API de Flutter
Explore Dart and Flutter reference docs for the SDK on pub.dev.
SDK autónomo de Dart
In addition to using the SDK with Flutter, you can also use the SDK with projects that just use Dart, like a CLI application or web server.
The usage for the SDK with Dart is the same as the Flutter SDK, except you must install and set up a separate package.
Example Projects
Explore engineering and expert-provided example projects to learn best practices and common development patterns using the Flutter SDK. Check out the Example Projects page for more Flutter sample apps.
Offline Login and Database Access
Log in a Device Sync user and open a synced database offline.
Proveedor comprador
Build a modified Flutter sample app that uses a non-synced database to store data on the device.