@@ -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 ),
0 commit comments