theolive 1.0.2
theolive: ^1.0.2 copied to clipboard
The THEOlive SDK provides HTTP-based real-time streaming video API at scale
import 'package:flutter/material.dart';
import 'movie_page.dart';
void main() {
runApp(const MaterialApp(
home: MyApp(),
));
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('THEOlive SDK Sample app'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Text('THEOlive'),
FilledButton(
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => const MoviePage(title: "Movie")));
},
child: const Text("Open Movie")),
],
),
));
}
}