File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed
Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import 'package:flutter/services.dart';
44
55class FlutterVlcPlayer {
66 static const MethodChannel _channel =
7- const MethodChannel ('flutter_vlc_player' );
7+ const MethodChannel ('flutter_vlc_player' );
88
99 static MethodChannel get methodChannel => _channel;
1010
Original file line number Diff line number Diff line change 1-
21import 'dart:async' ;
32
43import 'package:flutter/foundation.dart' ;
54import 'package:flutter/material.dart' ;
5+
66// ignore_for_file: non_constant_identifier_names
77// ignore_for_file: camel_case_types
88// ignore_for_file: prefer_single_quotes
@@ -20,22 +20,19 @@ class S implements WidgetsLocalizations {
2020
2121 @override
2222 TextDirection get textDirection => TextDirection .ltr;
23-
2423}
2524
2625class en extends S {
2726 const en ();
2827}
2928
30-
31- class GeneratedLocalizationsDelegate extends LocalizationsDelegate <WidgetsLocalizations > {
29+ class GeneratedLocalizationsDelegate
30+ extends LocalizationsDelegate <WidgetsLocalizations > {
3231 const GeneratedLocalizationsDelegate ();
3332
3433 List <Locale > get supportedLocales {
3534 return const < Locale > [
36-
3735 const Locale ("en" , "" ),
38-
3936 ];
4037 }
4138
@@ -57,7 +54,6 @@ class GeneratedLocalizationsDelegate extends LocalizationsDelegate<WidgetsLocali
5754 Future <WidgetsLocalizations > load (Locale locale) {
5855 final String lang = getLang (locale);
5956 switch (lang) {
60-
6157 case "en" :
6258 return new SynchronousFuture <WidgetsLocalizations >(const en ());
6359
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ class _VlcPlayerState extends State<VlcPlayer> {
3131 VlcPlayerController _controller;
3232 bool readyToShow = false ;
3333
34-
3534 @override
3635 void initState () {
3736 super .initState ();
@@ -71,13 +70,13 @@ class _VlcPlayerState extends State<VlcPlayer> {
7170 _controller = widget.controller;
7271 _controller.initView (id);
7372 if (_controller.hasClients) {
74- String aspectRatioString =
75- await _controller. setStreamUrl ( widget.url, widget.defaultHeight, widget.defaultWidth);
73+ String aspectRatioString = await _controller. setStreamUrl (
74+ widget.url, widget.defaultHeight, widget.defaultWidth);
7675 setState (() {
7776 readyToShow = true ;
7877 });
7978 if (aspectRatioString != null && aspectRatioString.isNotEmpty)
80- aspectRatio = double .parse (aspectRatioString);
79+ aspectRatio = double .parse (aspectRatioString);
8180 }
8281 }
8382
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class VlcPlayerController {
1212 hasClients = true ;
1313 }
1414
15- Future <String > setStreamUrl (String url, int defaultHeight, int defaultWidth) async {
15+ Future <String > setStreamUrl (
16+ String url, int defaultHeight, int defaultWidth) async {
1617 var result = await _channel.invokeMethod ("playVideo" , {
1718 'url' : url,
1819 });
@@ -27,9 +28,8 @@ class VlcPlayerController {
2728 }
2829
2930 void dispose () {
30- if (Platform .isIOS){
31+ if (Platform .isIOS) {
3132 _channel.invokeMethod ("dispose" );
3233 }
3334 }
34-
3535}
You can’t perform that action at this time.
0 commit comments