flutter_supabase_chat_core 1.1.0 copy "flutter_supabase_chat_core: ^1.1.0" to clipboard
flutter_supabase_chat_core: ^1.1.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 'color_schemes.g.dart';
import 'rooms.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: 'Firebase Chat',
        debugShowCheckedModeBanner: false,
        theme: ThemeData(
          useMaterial3: true,
          colorScheme: lightColorScheme,
        ),
        darkTheme: ThemeData(
          useMaterial3: true,
          colorScheme: darkColorScheme,
        ),
        themeMode: ThemeMode.dark,
        home: const UserOnlineStateObserver(
          child: RoomsPage(),
        ),
      );
}
25
likes
0
pub points
73%
popularity

Publisher

verified publisherinsideapp.it

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, supabase_flutter

More

Packages that depend on flutter_supabase_chat_core