realtimekit_ui 0.1.1
realtimekit_ui: ^0.1.1 copied to clipboard
Cloudflare's RealtimeKit UI SDK to integrate video-audio to your app
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:example/pages/meeting_join_and_create_page.dart';
void main() {
runApp(const ProviderScope(child: MyApp()));
}
class MyApp extends ConsumerWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Rtk Flutter Sample App',
home: const MeetingJoinAndCreatePage(),
theme: ThemeData(
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSeed(
seedColor: const Color(0xFF2160FD),
brightness: Brightness.dark,
),
primaryColor: const Color(0xFF2160FD),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
minimumSize: const Size(180, 44),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10),
),
),
),
inputDecorationTheme: const InputDecorationTheme(
filled: true,
border: OutlineInputBorder(
borderSide: BorderSide.none,
borderRadius: BorderRadius.all(Radius.circular(10)),
),
),
dividerTheme: const DividerThemeData(space: 24),
visualDensity: VisualDensity.compact,
useMaterial3: true,
),
);
}
}