Resolve deprecated method use in the video_player package

pull/1299/head
Jonathan Salmon 2 years ago
parent 67914f4977
commit c69afe8dc2
  1. 3
      flutter_quill_extensions/CHANGELOG.md
  2. 2
      flutter_quill_extensions/lib/embeds/widgets/video_app.dart
  3. 4
      flutter_quill_extensions/pubspec.yaml

@ -1,3 +1,6 @@
## 0.3.4
* Resolve deprecated method use in the `video_player` package
## 0.3.3 ## 0.3.3
* Fix a prototype bug which was bring by [PR #1230](https://github.com/singerdmx/flutter-quill/pull/1230#issuecomment-1560597099) * Fix a prototype bug which was bring by [PR #1230](https://github.com/singerdmx/flutter-quill/pull/1230#issuecomment-1560597099)

@ -34,7 +34,7 @@ class _VideoAppState extends State<VideoApp> {
super.initState(); super.initState();
_controller = widget.videoUrl.startsWith('http') _controller = widget.videoUrl.startsWith('http')
? VideoPlayerController.network(widget.videoUrl) ? VideoPlayerController.networkUrl(Uri.parse(widget.videoUrl))
: VideoPlayerController.file(File(widget.videoUrl)) : VideoPlayerController.file(File(widget.videoUrl))
..initialize().then((_) { ..initialize().then((_) {
// Ensure the first frame is shown after the video is initialized, // Ensure the first frame is shown after the video is initialized,

@ -1,6 +1,6 @@
name: flutter_quill_extensions name: flutter_quill_extensions
description: Embed extensions for flutter_quill including image, video, formula and etc. description: Embed extensions for flutter_quill including image, video, formula and etc.
version: 0.3.3 version: 0.3.4
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions
@ -16,7 +16,7 @@ dependencies:
image_picker: ^0.8.5+3 image_picker: ^0.8.5+3
photo_view: ^0.14.0 photo_view: ^0.14.0
video_player: ^2.4.2 video_player: ^2.7.0
youtube_player_flutter: ^8.1.1 youtube_player_flutter: ^8.1.1
gallery_saver: ^2.3.2 gallery_saver: ^2.3.2
math_keyboard: ">=0.1.8 <0.3.0" math_keyboard: ">=0.1.8 <0.3.0"

Loading…
Cancel
Save