omnicast_client 0.0.1
omnicast_client: ^0.0.1 copied to clipboard
Omnicast WebRTC client SDK for Flutter. Provides a scalable WebRTC based live streaming and real-time communication platform.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'screens/lobby_screen.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(const OmniCastDemoApp());
}
class OmniCastDemoApp extends StatelessWidget {
const OmniCastDemoApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'OmniCast Live Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
brightness: Brightness.dark,
scaffoldBackgroundColor: const Color(0xFF0F111A),
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xFF6C5CE7),
brightness: Brightness.dark,
primary: const Color(0xFF6C5CE7),
secondary: const Color(0xFF00CEC9),
),
cardTheme: CardThemeData(
color: const Color(0xFF1E2132),
elevation: 8,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
),
dialogTheme: DialogThemeData(
backgroundColor: const Color(0xFF1E2132),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20),
),
),
useMaterial3: true,
),
home: const LobbyScreen(),
);
}
}