Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Obada2020 committed Dec 6, 2023
1 parent f1940ed commit 4ff21a4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class YoutubePlayerScaffold extends StatefulWidget {
this.enableFullScreenOnVerticalDrag = true,
this.backgroundColor,
@Deprecated('Unused parameter. Use `YoutubePlayerParam.userAgent` instead.')
this.userAgent,
this.userAgent,
});

/// Builds the child widget.
Expand Down Expand Up @@ -86,9 +86,11 @@ class YoutubePlayerScaffold extends StatefulWidget {
State<YoutubePlayerScaffold> createState() => _YoutubePlayerScaffoldState();
}

class _YoutubePlayerScaffoldState extends State<YoutubePlayerScaffold> {
class _YoutubePlayerScaffoldState extends State<YoutubePlayerScaffold>
with AutomaticKeepAliveClientMixin<YoutubePlayerScaffold> {
late final GlobalObjectKey _playerKey;

@override
bool get wantKeepAlive => true;
@override
void initState() {
super.initState();
Expand Down

0 comments on commit 4ff21a4

Please sign in to comment.