-
Notifications
You must be signed in to change notification settings - Fork 74
/
youtube_player_iframe.dart
30 lines (27 loc) · 984 Bytes
/
youtube_player_iframe.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import 'package:flutter/material.dart';
import 'youtube_player.dart';
class MyYoutubePlayerIframe extends StatelessWidget {
const MyYoutubePlayerIframe({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
const String youTubeURL1 = 'https://www.youtube.com/watch?v=aWzlQ2N6qqg';
const String youTubeURL2 = 'https://www.youtube.com/watch?v=DtQycgMD4HQ';
const String youTubeURL3 = 'https://www.youtube.com/watch?v=jLMBLuGJTsA';
return Scaffold(
appBar: AppBar(title: const Text('Youtube Player Iframe')),
body: const SingleChildScrollView(
child: Column(
children: [
SizedBox(height: 15),
YouTubePlayer(youtubeURL: youTubeURL1),
SizedBox(height: 15),
YouTubePlayer(youtubeURL: youTubeURL2),
SizedBox(height: 15),
YouTubePlayer(youtubeURL: youTubeURL3),
SizedBox(height: 15),
],
),
),
);
}
}