daily_flutter 0.1.0-alpha.5 copy "daily_flutter: ^0.1.0-alpha.5" to clipboard
daily_flutter: ^0.1.0-alpha.5 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
0
pub points
84%
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

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