1+ // ignore_for_file: prefer_early_return, function_lines_of_code
12import 'dart:typed_data' ;
23
34import 'package:flutter/material.dart' ;
@@ -36,7 +37,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
3637 final double initSnapshotRightPosition = 10 ;
3738 final double initSnapshotBottomPosition = 10 ;
3839
39- // ignore: avoid-late-keyword
40+ // ignore: avoid_late_keyword
4041 late VlcPlayerController _controller;
4142
4243 //
@@ -363,7 +364,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
363364 IconButton (
364365 icon: const Icon (Icons .fullscreen),
365366 color: Colors .white,
366- // ignore: no-empty-block
367+ // ignore: no_empty_block
367368 onPressed: () {},
368369 ),
369370 ],
@@ -456,7 +457,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
456457 if (! mounted) return ;
457458 final selectedSubId = await showDialog <int >(
458459 context: context,
459- builder: (BuildContext context ) {
460+ builder: (BuildContext _ ) {
460461 return AlertDialog (
461462 title: const Text ('Select Subtitle' ),
462463 content: SizedBox (
@@ -502,7 +503,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
502503 if (! mounted) return ;
503504 final selectedAudioTrackId = await showDialog <int >(
504505 context: context,
505- builder: (BuildContext context ) {
506+ builder: (BuildContext _ ) {
506507 return AlertDialog (
507508 title: const Text ('Select Audio' ),
508509 content: SizedBox (
@@ -546,7 +547,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
546547 if (! mounted) return ;
547548 final selectedCastDeviceName = await showDialog <String >(
548549 context: context,
549- builder: (BuildContext context ) {
550+ builder: (BuildContext _ ) {
550551 return AlertDialog (
551552 title: const Text ('Display Devices' ),
552553 content: SizedBox (
@@ -596,7 +597,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
596597
597598 if (! mounted) return ;
598599
599- // ignore: avoid-non-null-assertion
600+ // ignore: avoid_non_null_assertion
600601 Overlay .of (context).insert (_overlayEntry! );
601602 }
602603
@@ -617,7 +618,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
617618 _overlayEntry = null ;
618619 await showDialog <void >(
619620 context: context,
620- builder: (ctx ) {
621+ builder: (_ ) {
621622 return AlertDialog (
622623 contentPadding: EdgeInsets .zero,
623624 content: Image .memory (snapshot),
@@ -633,7 +634,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
633634 right -= dragUpdateDetails.delta.dx;
634635 _overlayEntry? .markNeedsBuild ();
635636 },
636- onHorizontalDragEnd: (dragEndDetails ) {
637+ onHorizontalDragEnd: (_ ) {
637638 if ((initSnapshotRightPosition - right).abs () >= _overlayWidth) {
638639 _overlayEntry? .remove ();
639640 _overlayEntry = null ;
@@ -642,7 +643,7 @@ class VlcPlayerWithControlsState extends State<VlcPlayerWithControls> {
642643 _overlayEntry? .markNeedsBuild ();
643644 }
644645 },
645- onVerticalDragEnd: (dragEndDetails ) {
646+ onVerticalDragEnd: (_ ) {
646647 if ((initSnapshotBottomPosition - bottom).abs () >=
647648 _overlayWidth) {
648649 _overlayEntry? .remove ();
0 commit comments