rtmp_player 0.0.6
rtmp_player: ^0.0.6 copied to clipboard
this is a rtmp player
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:rtmp_player_example/second_page.dart';
void main() {
runApp(const MaterialApp(
title: 'Navigation Basics',
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(
body: Stack(
children: [
Positioned(
bottom: 0,
left: 0,
right: 0,
child: SafeArea(
top: false,
child: Row(
children: [
TextButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const SecondPage()),
);
},
child: const Text("跳转第二个界面")),
],
)))
],
),
);
}
}