Remove context parameter in YoutubeVideoApp

pull/1682/head
Ellet 1 year ago
parent 23f12bb9a3
commit 2d47d7bdb1
  1. 1
      flutter_quill_extensions/lib/embeds/video/editor/video_embed.dart
  2. 11
      flutter_quill_extensions/lib/embeds/widgets/youtube_video_app.dart

@ -36,7 +36,6 @@ class QuillEditorVideoEmbedBuilder extends EmbedBuilder {
if (isYouTubeUrl(videoUrl)) {
return YoutubeVideoApp(
videoUrl: videoUrl,
context: context,
readOnly: readOnly,
);
}

@ -5,14 +5,13 @@ import 'package:url_launcher/url_launcher.dart' show launchUrl;
import 'package:youtube_player_flutter/youtube_player_flutter.dart';
class YoutubeVideoApp extends StatefulWidget {
const YoutubeVideoApp(
{required this.videoUrl,
required this.context,
required this.readOnly,
super.key});
const YoutubeVideoApp({
required this.videoUrl,
required this.readOnly,
super.key,
});
final String videoUrl;
final BuildContext context;
final bool readOnly;
@override

Loading…
Cancel
Save