We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac17970 commit fcfa7a0Copy full SHA for fcfa7a0
example/lib/app/app.dart
@@ -119,7 +119,7 @@ class _ChewieDemoState extends State<ChewieDemo> {
119
additionalOptions: (context) {
120
return <OptionItem>[
121
OptionItem(
122
- onTap: toggleVideo,
+ onTap: (context) => toggleVideo(),
123
iconData: Icons.live_tv_sharp,
124
title: 'Toggle Video Src',
125
),
@@ -158,7 +158,7 @@ class _ChewieDemoState extends State<ChewieDemo> {
158
159
int currPlayIndex = 0;
160
161
- Future<void> toggleVideo(BuildContext context) async {
+ Future<void> toggleVideo() async {
162
await _videoPlayerController1.pause();
163
currPlayIndex += 1;
164
if (currPlayIndex >= srcs.length) {
0 commit comments