dots_baas_flutter 1.0.0
dots_baas_flutter: ^1.0.0 copied to clipboard
The official Flutter client for Dots BaaS Platform. Provides Authentication, Database, and Realtime capabilities.
Dots BaaS API & Flutter SDK #
Overview #
This repository contains the backend API definitions and the official Dots BaaS Flutter SDK.
The Flutter Client provides a clean and fast interface for the Dots Platform, supporting:
- Authentication (Sign Up, Sign In, JWT handling)
- Database (PostgREST queries: Select, Insert, Update, Delete)
- Realtime (Socket.io event listening)
- Storage (S3-compatible file uploads/downloads)
Getting Started (Flutter) #
- Add dependency to
pubspec.yaml:dependencies: dots_baas_flutter: ^1.0.0 - Initialize the client:
final dots = Dots('YOUR_PROJECT_ID', 'YOUR_API_KEY');
Usage Examples #
Auth #
await dots.auth.signUp(email: 'test@demo.com', password: '123');
final session = await dots.auth.signIn(email: 'test@demo.com', password: '123');
Storage #
// Upload
await dots.storage.from('images').upload('avatar.png', File('path/to/file'));
// Get URL
final url = dots.storage.from('images').getPublicUrl('avatar.png');