dyte_uikit 0.9.3 copy "dyte_uikit: ^0.9.3" to clipboard
dyte_uikit: ^0.9.3 copied to clipboard

Dyte's UI SDK to integrate video-audio to your app

example/lib/main.dart

import 'package:device_preview/device_preview.dart';
import 'package:dyte_uikit/dyte_uikit.dart';
import 'package:example/meeting_page.dart';
import 'package:example/secret.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(
    DevicePreview(
      enabled: false,
      builder: (context) => const MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: MaterialButton(
          color: Colors.black,
          onPressed: () {
            Navigator.push(
              context,
              MaterialPageRoute(builder: (context) {
                return DyteMeetingPage(
                  meetingInfo: DyteMeetingInfoV2(
                    authToken: participantAuthToken,
                    // roomName: roomName,
                  ),
                );
              }),
            );
            // DyteUIKit.loadUI();
          },
          child: const Text(
            "Load UIKit",
            style: TextStyle(color: Colors.white),
          ),
        ),
      ),
    );
  }
}
5
likes
85
pub points
84%
popularity

Publisher

verified publisherdyte.io

Dyte's UI SDK to integrate video-audio to your app

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

dyte_core, dyte_icons, file_picker, flutter, flutter_localizations, flutter_riverpod, get_it

More

Packages that depend on dyte_uikit