daily_flutter 0.20.0 copy "daily_flutter: ^0.20.0" to clipboard
daily_flutter: ^0.20.0 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)),
      ),
    );
  }
}
2
likes
120
pub points
62%
popularity

Publisher

verified publisherdaily.co

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