Skip to content

Commit b61a238

Browse files
author
Illia Romanenko
committed
Dart format & v 7.1.2
1 parent 55e2753 commit b61a238

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

flutter_vlc_player/lib/src/flutter_vlc_player.dart

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ class VlcPlayer extends StatefulWidget {
99
final Widget? placeholder;
1010
final bool virtualDisplay;
1111

12-
const VlcPlayer({
13-
Key? key,
12+
const VlcPlayer(
13+
{Key? key,
1414

15-
/// The [VlcPlayerController] responsible for the video being rendered in
16-
/// this widget.
17-
required this.controller,
15+
/// The [VlcPlayerController] responsible for the video being rendered in
16+
/// this widget.
17+
required this.controller,
1818

19-
/// The aspect ratio used to display the video.
20-
/// This MUST be provided, however it could simply be (parentWidth / parentHeight) - where parentWidth and
21-
/// parentHeight are the width and height of the parent perhaps as defined by a LayoutBuilder.
22-
required this.aspectRatio,
19+
/// The aspect ratio used to display the video.
20+
/// This MUST be provided, however it could simply be (parentWidth / parentHeight) - where parentWidth and
21+
/// parentHeight are the width and height of the parent perhaps as defined by a LayoutBuilder.
22+
required this.aspectRatio,
2323

24-
/// Before the platform view has initialized, this placeholder will be rendered instead of the video player.
25-
/// This can simply be a [CircularProgressIndicator] (see the example.)
26-
this.placeholder,
24+
/// Before the platform view has initialized, this placeholder will be rendered instead of the video player.
25+
/// This can simply be a [CircularProgressIndicator] (see the example.)
26+
this.placeholder,
2727

28-
/// Specify whether Virtual displays or Hybrid composition is used on Android.
29-
/// iOS only uses Hybrid composition.
30-
this.virtualDisplay = true
31-
}) : super(key: key);
28+
/// Specify whether Virtual displays or Hybrid composition is used on Android.
29+
/// iOS only uses Hybrid composition.
30+
this.virtualDisplay = true})
31+
: super(key: key);
3232

3333
@override
3434
_VlcPlayerState createState() => _VlcPlayerState();
@@ -94,8 +94,9 @@ class _VlcPlayerState extends State<VlcPlayer>
9494
),
9595
Offstage(
9696
offstage: !_isInitialized,
97-
child: vlcPlayerPlatform
98-
.buildView(widget.controller.onPlatformViewCreated, virtualDisplay: widget.virtualDisplay),
97+
child: vlcPlayerPlatform.buildView(
98+
widget.controller.onPlatformViewCreated,
99+
virtualDisplay: widget.virtualDisplay),
99100
),
100101
],
101102
),

flutter_vlc_player_platform_interface/lib/src/method_channel/method_channel_vlc_player.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ class MethodChannelVlcPlayer extends VlcPlayerPlatform {
6161
/// The `virtualDisplay` specifies whether Virtual displays or Hybrid composition is used on Android.
6262
/// iOS only uses Hybrid composition.
6363
@override
64-
Widget buildView(PlatformViewCreatedCallback onPlatformViewCreated, {bool virtualDisplay = true}) {
64+
Widget buildView(PlatformViewCreatedCallback onPlatformViewCreated,
65+
{bool virtualDisplay = true}) {
6566
const viewType = 'flutter_video_plugin/getVideoView';
6667
if (Platform.isAndroid) {
6768
if (virtualDisplay) {
@@ -75,9 +76,9 @@ class MethodChannelVlcPlayer extends VlcPlayerPlatform {
7576
return PlatformViewLink(
7677
viewType: viewType,
7778
surfaceFactory: (
78-
BuildContext context,
79-
PlatformViewController controller,
80-
) {
79+
BuildContext context,
80+
PlatformViewController controller,
81+
) {
8182
return AndroidViewSurface(
8283
controller: controller as AndroidViewController,
8384
gestureRecognizers: const {},

flutter_vlc_player_platform_interface/lib/src/platform_interface/vlc_player_platform_interface.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ abstract class VlcPlayerPlatform extends PlatformInterface {
3333
}
3434

3535
/// Returns a widget displaying the video.
36-
Widget buildView(PlatformViewCreatedCallback onPlatformViewCreated, {bool virtualDisplay = true}) {
36+
Widget buildView(PlatformViewCreatedCallback onPlatformViewCreated,
37+
{bool virtualDisplay = true}) {
3738
throw _unimplemented('buildView');
3839
}
3940

0 commit comments

Comments
 (0)