flutter_supabase_chat_core 1.4.0 copy "flutter_supabase_chat_core: ^1.4.0" to clipboard
flutter_supabase_chat_core: ^1.4.0 copied to clipboard

Actively maintained, community-driven Supabase BaaS for chat applications with an optional chat UI.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_supabase_chat_core/flutter_supabase_chat_core.dart';
import 'package:supabase_flutter/supabase_flutter.dart';

import 'src/pages/home.dart';
import 'src/theme/color_schemes.dart';
import 'supabase_options.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Supabase.initialize(
    url: supabaseOptions.url,
    anonKey: supabaseOptions.anonKey,
  );
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({
    super.key,
  });

  @override
  Widget build(BuildContext context) => MaterialApp(
        title: 'Supabase Chat',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          useMaterial3: true,
          colorScheme: lightColorScheme,
        ),
        darkTheme: ThemeData(
          useMaterial3: true,
          colorScheme: darkColorScheme,
        ),
        themeMode: ThemeMode.dark,
        home: const UserOnlineStateObserver(
          child: HomePage(),
        ),
      );
}
27
likes
0
points
618
downloads

Publisher

verified publisherinsideapp.it

Weekly Downloads

Actively maintained, community-driven Supabase BaaS for chat applications with an optional chat UI.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_chat_types, meta, mime, supabase_flutter, uuid

More

Packages that depend on flutter_supabase_chat_core