flutter_supabase_chat_core 1.3.2 copy "flutter_supabase_chat_core: ^1.3.2" to clipboard
flutter_supabase_chat_core: ^1.3.2 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(),
        ),
      );
}
25
likes
150
pub points
73%
popularity
screenshot

Publisher

verified publisherinsideapp.it

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

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter, flutter_chat_types, meta, mime, supabase_flutter, uuid

More

Packages that depend on flutter_supabase_chat_core