You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 18, 2020. It is now read-only.
The text was updated successfully, but these errors were encountered:
ettiennelr
changed the title
Flutter app just closes withu any error when creatingwidget - only on android 10
Flutter app just closes without any error when creating widget - only on android 10
Apr 19, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
class YouTube extends StatefulWidget {
String id;
YouTube(this.id);
@OverRide
_YouTubeState createState() => _YouTubeState();
}
class _YouTubeState extends State {
YoutubePlayerController _controller;
@OverRide
void initState() {
_controller = YoutubePlayerController(
initialVideoId: widget.id,
flags: YoutubePlayerFlags(
mute: false,
autoPlay: false,
forceHideAnnotation: true,
),
);
super.initState();
}
@OverRide
Widget build(BuildContext context) {
return YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
onReady: () {
print('Player is ready.');
});
}
}
The text was updated successfully, but these errors were encountered: