videosdk 0.0.9 videosdk: ^0.0.9 copied to clipboard
Video SDK Flutter to simply integrate Audio & Video Calling API or Live Video Streaming API to your app with just a few lines of code.
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'constants/colors.dart';
import 'navigator_key.dart';
import 'screens/splash_screen.dart';
void main() async {
// Load Environment variables
await dotenv.load(fileName: ".env");
// Run Flutter App
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
// Material App
return MaterialApp(
title: 'VideoSDK Flutter Example',
theme: ThemeData.dark().copyWith(
appBarTheme: const AppBarTheme().copyWith(
color: primaryColor,
),
primaryColor: primaryColor,
backgroundColor: secondaryColor,
),
home: const SplashScreen(),
navigatorKey: navigatorKey,
);
}
}