/
main.dart
88 lines (84 loc) · 2.44 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import 'package:flutter/material.dart';
import 'streaming.dart';
import 'streaming_and_record.dart';
Future<void> main() async {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: true,
home: Home(),
);
}
}
class Home extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ElevatedButton(
onPressed: () {},
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.multitrack_audio_outlined),
const SizedBox(
width: 4,
),
Text(
"Recording",
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
)
],
)),
const SizedBox(
height: 24,
),
ElevatedButton(
onPressed: () => Navigator.push(context,
MaterialPageRoute(builder: (_) => StreamingExample())),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.audiotrack_rounded),
const SizedBox(
width: 4,
),
Text(
"Streaming",
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
)
],
)),
const SizedBox(
height: 24,
),
ElevatedButton(
onPressed: () => Navigator.push(
context,
MaterialPageRoute(
builder: (_) => StreamingAndRecordExample())),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Icon(Icons.audiotrack_rounded),
Icon(Icons.multitrack_audio_outlined),
const SizedBox(
width: 4,
),
Text(
"Streaming And Record",
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 16),
)
],
))
],
),
));
}
}