rtmp_player 0.0.6 copy "rtmp_player: ^0.0.6" to clipboard
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("跳转第二个界面")),
                      ],
                    )))
          ],
        ),
    );
  }
}
2
likes
145
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

this is a rtmp player

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on rtmp_player