supabase_addons 0.0.1+1 copy "supabase_addons: ^0.0.1+1" to clipboard
supabase_addons: ^0.0.1+1 copied to clipboard

outdated

A starting point for Dart libraries or applications.

example/supabase_addons_example.dart

import 'dart:async';
import 'dart:io';

import 'package:supabase/supabase.dart';
import 'package:supabase_addons/supabase_addons.dart';

import 'credentials.dart';

void main() async {
  // Intialize the addons
  await SupabaseAddons.initialize(
    client: SupabaseClient(SUPABASE_URL, SUPABASE_SECRET),
    storagePath: './auth',
  );
  SupabaseCrashlyticsAddons.initialize();

  // Run the app
  await runZonedGuarded<Future<void>>(() async {
    await SupabaseAuthAddons.auth.signIn(email: EMAIL, password: PASSWORD);

    throw 'test crashlytics';

    // Dipose the addons
  }, (error, stacktrace) {
    SupabaseCrashlyticsAddons.recordError(error, stacktrace);
  });

  // Dispose the addons
  SupabaseAddons.dispose();
  exit(0);
}
26
likes
0
points
32
downloads

Publisher

unverified uploader

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

hive, intl, stack_trace, supabase

More

Packages that depend on supabase_addons