skip to Main Content

I am getting these errors while "flutter run".

image

please help me if you can. I have even reset my laptop to solve this errors but could not. I have done flutter run, flutter clean ad all possible way.

2

Answers


  1. The error you share in the image tells what is the problem. You are trying to assign a function that has the incorrect types to what the parameter expects.

    void Function(TapDownDetails) is different than void Function(TapDragDownDetails)?.

    You should assign to the parameter a function with same argument type of TapDragDownDetails and that function should also be nullable.

    Login or Signup to reply.
  2. I am facing the same prob;em the flutter library gesture_detector_builder.dart file is giving a lot of error which i didn’t edit.
    Have you found a solution for it?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search