Skip to content

Instantly share code, notes, and snippets.

@ponnamkarthik
Created September 12, 2019 02:02
Container(
child: Column(
children: <Widget>[
if(_video != null)
_videoPlayerController.value.initialized
? AspectRatio(
aspectRatio: _videoPlayerController.value.aspectRatio,
child: VideoPlayer(_videoPlayerController),
)
: Container()
else
Text("Click on Pick Video to select video", style: TextStyle(fontSize: 18.0),),
RaisedButton(
onPressed: () {
_pickVideo();
},
child: Text("Pick Video From Gallery"),
),
],
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment