From 7090c3a926b295747cccb1333895417ab8a85584 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Thu, 19 Dec 2024 16:12:20 +0800 Subject: [PATCH] remove video_player: video_player, requires manually registerWith() since flutter 3.27, only 1 implementation will be included(see #192). multiple implementations will conflict and fail to build. now you have to add fvp to your app's direct dependencies. should fix #170, #196. --- README.md | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 47af6b8..39f9e22 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ project is create with `flutter create -t plugin --platforms=linux,macos,windows ## How to Use - Add [fvp](https://pub.dev/packages/fvp) in your pubspec.yaml dependencies: `flutter pub add fvp`. Since flutter 3.27, fvp must be a direct dependency in your app's pubspec.yaml. -- **(Optional)** Add 2 lines in your video_player examples. Without this step, this plugin will be used for video_player unsupported platforms(windows, linux), official implementation will be used otherwise. +- **(Optional for flutter < 3.27 and fvp <= 0.28)** Add 2 lines in your video_player examples. Without this step, this plugin will be used for video_player unsupported platforms(windows, linux), official implementation will be used otherwise. ```dart import 'package:fvp/fvp.dart' as fvp; diff --git a/pubspec.yaml b/pubspec.yaml index 69d52ac..2906081 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,7 +46,7 @@ flutter: # All these are used by the tooling to maintain consistency when # adding or updating assets for this project. plugin: - implements: video_player + #implements: video_player # flutter 3.27+ can only select 1 implementation platforms: android: package: com.mediadevkit.fvp