Dart & Flutter SDK
Install the Dart package:
dart pub add pocketbaseFlutter Integration Example
import 'package:pocketbase/pocketbase.dart';
final pb = PocketBase('https://<your-subdomain>.pocket-kit.naftalmatoya.tech');
// Authenticatefinal authData = await pb.collection('users').authWithPassword('user@example.com', 'password123');
// Fetch recordsfinal records = await pb.collection('posts').getFullList( sort: '-created',);
// Realtime SSE listenerpb.collection('posts').subscribe('*', (e) { print('Action: ${e.action}, Record: ${e.record}');});