Skip to content

Commit fcfa7a0

Browse files
author
k.akmalova
committed
refactor: removed unused parameter
1 parent ac17970 commit fcfa7a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/lib/app/app.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class _ChewieDemoState extends State<ChewieDemo> {
119119
additionalOptions: (context) {
120120
return <OptionItem>[
121121
OptionItem(
122-
onTap: toggleVideo,
122+
onTap: (context) => toggleVideo(),
123123
iconData: Icons.live_tv_sharp,
124124
title: 'Toggle Video Src',
125125
),
@@ -158,7 +158,7 @@ class _ChewieDemoState extends State<ChewieDemo> {
158158

159159
int currPlayIndex = 0;
160160

161-
Future<void> toggleVideo(BuildContext context) async {
161+
Future<void> toggleVideo() async {
162162
await _videoPlayerController1.pause();
163163
currPlayIndex += 1;
164164
if (currPlayIndex >= srcs.length) {

0 commit comments

Comments
 (0)