daily_flutter 0.28.1 copy "daily_flutter: ^0.28.1" to clipboard
daily_flutter: ^0.28.1 copied to clipboard

Flutter plugin for Daily. The Daily Client SDK allows you to build video and audio calling into your Flutter applications.

example/main.dart

// © 2022 Daily, Co. All Rights Reserved

// ignore_for_file: diagnostic_describe_all_properties, discarded_futures

import 'package:daily_flutter/daily_flutter.dart';
import 'package:flutter/material.dart';

///////////////////////////////////////////////////////////
//
// For a much more in-depth example, see:
// https://github.com/daily-demos/daily-flutter-demo
//
///////////////////////////////////////////////////////////
Future<void> main() async => runApp(MyApp(client: await CallClient.create()));

class MyApp extends StatefulWidget {
  const MyApp({super.key, required this.client});

  final CallClient client;

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _controller = VideoViewController();

  @override
  void initState() {
    super.initState();
    widget.client.updateInputs(
      inputs: const InputSettingsUpdate.set(
        camera: CameraInputSettingsUpdate.set(isEnabled: BoolUpdate.set(true)),
        microphone: MicrophoneInputSettingsUpdate.set(isEnabled: BoolUpdate.set(true)),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Daily example')),
        body: Center(child: VideoView(controller: _controller)),
      ),
    );
  }
}
3
likes
140
points
4.46k
downloads

Publisher

verified publisherdaily.co

Weekly Downloads

Flutter plugin for Daily. The Daily Client SDK allows you to build video and audio calling into your Flutter applications.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

collection, ffi, flutter, flutter_plugin_android_lifecycle, freezed_annotation, json_annotation, logging, meta, permission_handler, plugin_platform_interface, synchronized

More

Packages that depend on daily_flutter