flutter_ios_airplay 0.0.5 copy "flutter_ios_airplay: ^0.0.5" to clipboard
flutter_ios_airplay: ^0.0.5 copied to clipboard

PlatformiOS

flutter ios airplay is a plugin to play video from a url and be able to use iOS Native AirPlay.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_ios_airplay/flutter_ios_airplay.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      themeMode: ThemeMode.system,
      theme: ThemeData(useMaterial3: true),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () async {
                  await FlutterIosAirplay.url(
                      url: 'https://themonstersapp.com/bunny.mp4');
                },
                child: const Text('Video Url'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
2
likes
150
pub points
70%
popularity

Publisher

verified publisherthemonstersapp.com

flutter ios airplay is a plugin to play video from a url and be able to use iOS Native AirPlay.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_ios_airplay