Skip to content

Commit 8b0fc30

Browse files
author
Illia Romanenko
committed
auto-format file to improve readability
1 parent 1cf6ab9 commit 8b0fc30

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

lib/flutter_vlc_player.dart

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ class _VlcPlayerState extends State<VlcPlayer>
149149
// Once the controller has clients registered, we're good to register
150150
// with LibVLC on the platform side.
151151
if (_controller.hasClients) {
152-
await _controller._initialize( widget.url,widget.hwAcc, widget.options,);
152+
await _controller._initialize(
153+
widget.url,
154+
widget.hwAcc,
155+
widget.options,
156+
);
153157
}
154158
}
155159

@@ -231,13 +235,15 @@ class VlcPlayerController {
231235
/// widget, which is simply used for an [AspectRatio] wrapper around the
232236
/// content.
233237
double _aspectRatio;
238+
234239
double get aspectRatio => _aspectRatio;
235240

236241
/// This is the playback speed as returned by LibVLC. Whilst playback speed
237242
/// can be manipulated through the library, as this is the value actually
238243
/// returned by the library, it will be the speed that LibVLC is actually
239244
/// trying to process the content at.
240245
double _playbackSpeed;
246+
241247
double get playbackSpeed => _playbackSpeed;
242248

243249
VlcPlayerController(
@@ -273,8 +279,8 @@ class VlcPlayerController {
273279
_eventHandlers.forEach((handler) => handler());
274280
}
275281

276-
Future<void> _initialize(
277-
String url,[HwAcc hwAcc, List<String> options]) async {
282+
Future<void> _initialize(String url,
283+
[HwAcc hwAcc, List<String> options]) async {
278284
//if(initialized) throw new Exception("Player already initialized!");
279285

280286
await _methodChannel.invokeMethod("initialize", {
@@ -309,7 +315,7 @@ class VlcPlayerController {
309315
_fireEventHandlers();
310316
break;
311317
}
312-
}).onError((e){
318+
}).onError((e) {
313319
_playingState = PlayingState.ERROR;
314320
_fireEventHandlers();
315321
});

0 commit comments

Comments
 (0)