Last active
June 28, 2019 10:01
-
-
Save leonardarnold/6f87350df5fbe8f0f912d7d09f746f77 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
void main() { | |
initState(); | |
} | |
VideoPlayerController videoPlayerController; | |
void initState(){ | |
videoPlayerInit(); | |
} | |
Future<String> getU() async { | |
var url = "stackoverflow.com"; | |
return url; | |
} | |
void videoPlayerInit() async { | |
var url = await getU(); | |
videoPlayerController = VideoPlayerController.network(url); | |
print("videoPlayerController initialised"); | |
} | |
class VideoPlayerController { | |
String url; | |
VideoPlayerController.network(this.url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment