webrtc_mesh 0.0.2 copy "webrtc_mesh: ^0.0.2" to clipboard
webrtc_mesh: ^0.0.2 copied to clipboard

Easy cross-platform WebRTC peer based mesh network for Flutter with a simple to implement signalling api.

example/main.dart

import 'package:flutter/material.dart';

import 'chat.dart';

dynamic main() async {
  WidgetsFlutterBinding.ensureInitialized();
  // await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) => MaterialApp(
        debugShowCheckedModeBanner: false,
        title: "WebRTC Mesh Example",
        theme: ThemeData(
          primaryColor: Colors.white,
          scaffoldBackgroundColor: Colors.white,
          appBarTheme: const AppBarTheme(
            backgroundColor: Colors.white,
            elevation: 0,
            iconTheme: IconThemeData(color: Colors.black),
          ),
          textTheme: const TextTheme(
            titleLarge: TextStyle(
              fontSize: 18,
              color: Colors.black,
              fontWeight: FontWeight.bold,
            ),
          ),
        ),
        home: ChatScreen(roomId: 'roomId'),
      );
}
5
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Easy cross-platform WebRTC peer based mesh network for Flutter with a simple to implement signalling api.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter, flutter_webrtc, uuid

More

Packages that depend on webrtc_mesh