yumeeting_flutter_sdk 0.7.1
yumeeting_flutter_sdk: ^0.7.1 copied to clipboard
yumeeting SDK for flutter, For live broadcast, video conference, etc., support mobile.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'views/echotest_view.dart';
import 'views/ion_cluster_view.dart';
import 'views/pubsub_view.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(GetMaterialApp(
home: Home(),
));
}
class Home extends StatelessWidget {
@override
Widget build(context) => Scaffold(
appBar: AppBar(title: Text('ion flutter examples')),
body: Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
ElevatedButton(
onPressed: () {
Get.to(EchoTestView(), transition: Transition.rightToLeft);
},
child: Text('Echo Test (ion-sfu)')),
ElevatedButton(
onPressed: () {
Get.to(PubSubTestView(), transition: Transition.rightToLeft);
},
child: Text('Pub/Sub (ion-sfu)')),
ElevatedButton(
onPressed: () {
Get.to(IonClusterView(), transition: Transition.rightToLeft);
},
child: Text('Ion Cluster Pub/Sub (ion-cluster)')),
],
)));
}
copied to clipboard