Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Flutter app just closes without any error when creating widget - only on android 10 #69

Open
ettiennelr opened this issue Apr 19, 2020 · 0 comments

Comments

@ettiennelr
Copy link

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.');
});
}
}

@ettiennelr 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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant