janus_client_plugin 0.0.1 janus_client_plugin: ^0.0.1 copied to clipboard
A new flutter janus client plugin project.
import 'package:flutter/material.dart';
import 'package:janus_client_plugin_example/video_room_page.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Janus Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter Janus Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
void _entryVideoRoom() {
Navigator.push(
context,
MaterialPageRoute(
builder: (BuildContext context) => VideoRoomPage()
)
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: RaisedButton(
onPressed: _entryVideoRoom,
child: Text('进入视频会议'),
),
),
);
}
}