dyte_uikit 0.0.2 dyte_uikit: ^0.0.2 copied to clipboard
Dyte's UI SDK to integrate video-audio to your app
import 'package:dyte_uikit/dyte_uikit.dart';
import 'package:example/meeting_page.dart';
import 'package:example/secrets.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
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: DyteMeetingInfo(
authToken: authToken,
roomName: meetingRoomName,
),
);
}),
);
// DyteUIKit.loadUI();
},
child: const Text(
"Load UIKit",
style: TextStyle(color: Colors.white),
),
),
),
);
}
}