Created
June 21, 2019 02:31
-
-
Save drexel-ue/a4bbbe5abbb15654729da77c64dbd30a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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