[video_player] update dependencies plugin version (#43)

Updates
- Upgrade `video_player_platform_interface` from 4.1.0 to 4.2.0
- Update example
  - `video_player` from 2.1.12 to 2.2.5
  - Refactor source file
This commit is contained in:
Hidenori Matsubayashi
2021-10-26 13:39:15 +09:00
committed by GitHub
parent 6a9f8d85a8
commit 6051d13082
4 changed files with 16 additions and 12 deletions
+4
View File
@@ -1,3 +1,7 @@
## 0.9.4
* Upgrade video_player_platform_interface from 4.1.0 to 4.2.0.
* Refactor example source code.
## 0.9.3 ## 0.9.3
* Improve the error handling. * Improve the error handling.
* Add the missing mutex. * Add the missing mutex.
+7 -7
View File
@@ -33,7 +33,7 @@ class _App extends StatelessWidget {
tabs: <Widget>[ tabs: <Widget>[
Tab( Tab(
icon: Icon(Icons.cloud), icon: Icon(Icons.cloud),
text: "Remote", text: 'Remote',
), ),
], ],
), ),
@@ -109,7 +109,7 @@ class _ControlsOverlay extends StatelessWidget {
const _ControlsOverlay({Key? key, required this.controller}) const _ControlsOverlay({Key? key, required this.controller})
: super(key: key); : super(key: key);
static const _examplePlaybackRates = [ static const List<double> _examplePlaybackRates = [
0.25, 0.25,
0.5, 0.5,
1.0, 1.0,
@@ -127,13 +127,13 @@ class _ControlsOverlay extends StatelessWidget {
return Stack( return Stack(
children: <Widget>[ children: <Widget>[
AnimatedSwitcher( AnimatedSwitcher(
duration: Duration(milliseconds: 50), duration: const Duration(milliseconds: 50),
reverseDuration: Duration(milliseconds: 200), reverseDuration: const Duration(milliseconds: 200),
child: controller.value.isPlaying child: controller.value.isPlaying
? SizedBox.shrink() ? const SizedBox.shrink()
: Container( : Container(
color: Colors.black26, color: Colors.black26,
child: Center( child: const Center(
child: Icon( child: Icon(
Icons.play_arrow, Icons.play_arrow,
color: Colors.white, color: Colors.white,
@@ -157,7 +157,7 @@ class _ControlsOverlay extends StatelessWidget {
}, },
itemBuilder: (context) { itemBuilder: (context) {
return [ return [
for (final speed in _examplePlaybackRates) for (final double speed in _examplePlaybackRates)
PopupMenuItem( PopupMenuItem(
value: speed, value: speed,
child: Text('${speed}x'), child: Text('${speed}x'),
+3 -3
View File
@@ -3,13 +3,13 @@ description: Demonstrates how to use the video_player plugin.
publish_to: none publish_to: none
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.14.0 <3.0.0"
flutter: ">=2.0.0" flutter: ">=2.5.0"
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
video_player: ^2.1.12 video_player: ^2.2.5
video_player_elinux: video_player_elinux:
path: ../ path: ../
+2 -2
View File
@@ -1,6 +1,6 @@
name: video_player_elinux name: video_player_elinux
description: Flutter plugin for displaying inline video with other Flutter widgets on Embedded Linux. description: Flutter plugin for displaying inline video with other Flutter widgets on Embedded Linux.
version: 0.9.3 version: 0.9.4
homepage: https://github.com/sony/flutter-elinux-plugins homepage: https://github.com/sony/flutter-elinux-plugins
repository: https://github.com/sony/flutter-elinux-plugins/tree/main/packages/video_player repository: https://github.com/sony/flutter-elinux-plugins/tree/main/packages/video_player
@@ -11,7 +11,7 @@ environment:
dependencies: dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
video_player_platform_interface: ^4.1.0 video_player_platform_interface: ^4.2.0
flutter: flutter:
plugin: plugin: