From 4c4e8bd6a743133ae40cc67c84f2116695a0ae09 Mon Sep 17 00:00:00 2001 From: Robert Virkus Date: Fri, 13 May 2022 16:40:26 +0200 Subject: [PATCH] ensure compatibility with Flutter 3.0 --- lib/enough_media.dart | 3 +-- lib/src/interactive/pdf_interactive_media.dart | 2 +- pubspec.yaml | 12 ++++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/enough_media.dart b/lib/enough_media.dart index 87eb535..bfe2342 100644 --- a/lib/enough_media.dart +++ b/lib/enough_media.dart @@ -7,8 +7,7 @@ export 'src/interactive/interactive.dart'; export 'src/preview_media_widget.dart'; export 'src/preview/preview.dart'; -export 'package:native_pdf_view/native_pdf_view.dart'; -// export 'package:video_player/video_player.dart'; +export 'package:pdfx/pdfx.dart'; export 'package:chewie/chewie.dart'; export 'package:chewie_audio/chewie_audio.dart' show ChewieAudio, ChewieAudioController; diff --git a/lib/src/interactive/pdf_interactive_media.dart b/lib/src/interactive/pdf_interactive_media.dart index 6a1885c..59acff7 100644 --- a/lib/src/interactive/pdf_interactive_media.dart +++ b/lib/src/interactive/pdf_interactive_media.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:native_pdf_view/native_pdf_view.dart'; +import 'package:pdfx/pdfx.dart'; import '../media_provider.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 01cb5fe..0c97f82 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -10,12 +10,12 @@ environment: dependencies: flutter: sdk: flutter - native_pdf_view: ^4.0.1 - photo_view: ^0.11.1 - video_player: ^2.1.6 - chewie: ^1.2.2 - chewie_audio: ^1.2.0 - path_provider: ^2.0.2 + pdfx: ^2.0.1+2 + photo_view: ^0.13.0 + video_player: ^2.4.2 + chewie: ^1.3.2 + chewie_audio: ^1.3.0 + path_provider: ^2.0.10 dev_dependencies: flutter_test: