Skip to content

Commit a8927fb

Browse files
author
Illia Romanenko
committed
format code
1 parent c2b482f commit a8927fb

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

lib/flutter_vlc_player.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter/services.dart';
44

55
class 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

lib/generated/i18n.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
21
import 'dart:async';
32

43
import 'package:flutter/foundation.dart';
54
import '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

2625
class 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

lib/vlc_player.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

lib/vlc_player_controller.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)