dyte_uikit 0.0.5 dyte_uikit: ^0.0.5 copied to clipboard
Dyte's UI SDK to integrate video-audio to your app
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: hostAuthToken,
// roomName: roomName,
),
);
}),
);
// DyteUIKit.loadUI();
},
child: const Text(
"Load UIKit",
style: TextStyle(color: Colors.white),
),
),
),
);
}
}