Skip to content

Instantly share code, notes, and snippets.

@drexel-ue
Created June 21, 2019 02:31
Show Gist options
  • Save drexel-ue/a4bbbe5abbb15654729da77c64dbd30a to your computer and use it in GitHub Desktop.
Save drexel-ue/a4bbbe5abbb15654729da77c64dbd30a to your computer and use it in GitHub Desktop.
List.generate(profileBloc.content.length, (int index) {
final vid = profileBloc.content[index];
final controller =
VideoPlayerController.network(vid.downloadUrl);
return SizedBox(
height: height * 0.3,
width: width * 0.3,
child: Column(
children: <Widget>[
VideoPlayer(controller),
Text(vid.title),
],
),
);
}
content: List<VideoData>
VideoData: info aboout a video ( title, downloadUrl, etc...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment