dyte_uikit 0.6.1 copy "dyte_uikit: ^0.6.1" to clipboard
dyte_uikit: ^0.6.1 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
0
pub points
84%
popularity

Publisher

verified publisherdyte.io

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

Homepage

License

unknown (license)

Dependencies

dyte_core, dyte_icons, file_picker, flutter, flutter_riverpod, get_it

More

Packages that depend on dyte_uikit