Skip to content

Commit 7c7d04d

Browse files
fix list
1 parent b0f8f85 commit 7c7d04d

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

flutter_vlc_player/example/lib/single_tab.dart

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,49 +35,39 @@ class _SingleTabState extends State<SingleTab> {
3535
}
3636

3737
void fillVideos() {
38-
listVideos = <VideoData>[];
39-
//
40-
listVideos.add(
38+
listVideos = [
4139
VideoData(
4240
name: 'Network Video 1',
4341
path:
4442
'http://samples.mplayerhq.hu/MPEG-4/embedded_subs/1Video_2Audio_2SUBs_timed_text_streams_.mp4',
4543
type: VideoType.network,
4644
),
47-
);
48-
//
49-
listVideos.add(
45+
//
5046
VideoData(
5147
name: 'Network Video 2',
5248
path: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
5349
type: VideoType.network,
5450
),
55-
);
56-
//
57-
listVideos.add(
51+
//
5852
VideoData(
5953
name: 'HLS Streaming Video 1',
6054
path:
6155
'http://demo.unified-streaming.com/video/tears-of-steel/tears-of-steel.ism/.m3u8',
6256
type: VideoType.network,
6357
),
64-
);
65-
//
66-
listVideos.add(
58+
//
6759
VideoData(
6860
name: 'File Video 1',
6961
path: 'System File Example',
7062
type: VideoType.file,
7163
),
72-
);
73-
//
74-
listVideos.add(
64+
//
7565
VideoData(
7666
name: 'Asset Video 1',
7767
path: 'assets/sample.mp4',
7868
type: VideoType.asset,
7969
),
80-
);
70+
];
8171
}
8272

8373
@override

0 commit comments

Comments
 (0)