flutter_ios_airplay 0.0.2 flutter_ios_airplay: ^0.0.2 copied to clipboard
A new Flutter plugin for iOS for get AirPlay on Flutter.
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
void initState() {
super.initState();
}
@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/gymapp/video/training/Cuadriceps/Aducctores.mp4');
},
child: const Text('Video Url'),
),
],
),
),
),
);
}
}