agora_uikit 0.0.1 copy "agora_uikit: ^0.0.1" to clipboard
agora_uikit: ^0.0.1 copied to clipboard

outdated

Flutter plugin to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final AgoraClient client = AgoraClient(
    agoraConnectionData: AgoraConnectionData(
      appId: "<--Add your App Id here-->",
      channelName: "test",
    ),
    enabledPermission: [
      Permission.camera,
      Permission.microphone,
    ],
  );

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Agora UIKit'),
          centerTitle: true,
        ),
        body: SafeArea(
          child: Stack(
            children: [
              AgoraVideoViewer(
                client: client,
              ),
              AgoraVideoButtons(
                client: client,
              ),
            ],
          ),
        ),
      ),
    );
  }
}
425
likes
0
pub points
96%
popularity

Publisher

verified publisheragora.io

Flutter plugin to simply integrate Agora Video Calling or Live Video Streaming to your app with just a few lines of code.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

agora_rtc_engine, flutter, http, lints, permission_handler

More

Packages that depend on agora_uikit