twilio_programmable_video 0.7.2+1 copy "twilio_programmable_video: ^0.7.2+1" to clipboard
twilio_programmable_video: ^0.7.2+1 copied to clipboard

outdated

Flutter plugin for Twilio Programmable Video, which enables you to build real-time videocall applications (WebRTC)

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:provider/provider.dart';
import 'package:twilio_programmable_video_example/debug.dart';
import 'package:twilio_programmable_video_example/room/join_room_page.dart';
import 'package:twilio_programmable_video_example/shared/services/backend_service.dart';
import 'package:firebase_core/firebase_core.dart';

void main() {
  Debug.enabled = true;
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setPreferredOrientations(<DeviceOrientation>[
    DeviceOrientation.landscapeRight,
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  runApp(TwilioProgrammableVideoExample());
}

class TwilioProgrammableVideoExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FutureBuilder(
      future: Firebase.initializeApp(),
      builder: (context, snapshot) {
        if (snapshot.connectionState == ConnectionState.done) {
          return Provider<BackendService>(
            create: (_) => FirebaseFunctionsService.instance,
            child: MaterialApp(
              title: 'Twilio Programmable Video',
              theme: ThemeData(
                primarySwatch: Colors.blue,
                appBarTheme: AppBarTheme(
                  color: Colors.blue,
                  textTheme: TextTheme(
                    headline6: TextStyle(
                      fontSize: 20,
                      fontWeight: FontWeight.w500,
                      color: Colors.white,
                    ),
                  ),
                ),
              ),
              home: JoinRoomPage(),
            ),
          );
        } else {
          return Center(child: CircularProgressIndicator());
        }
      },
    );
  }
}
254
likes
0
pub points
91%
popularity

Publisher

verified publisherwolfenra.in

Flutter plugin for Twilio Programmable Video, which enables you to build real-time videocall applications (WebRTC)

Homepage
Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

enum_to_string, flutter, permission_handler, twilio_programmable_video_platform_interface

More

Packages that depend on twilio_programmable_video