0
  GestureDetector(
   // behavior:HitTestBehavior(),
    onTap: (){
      print('hello word');
      //print(gl);
     // print(value.localPosition.dx);
    },
    child:
     CustomPaint(
       size: Size(setRawSize(600), setRawSize(290)),
       foregroundPainter: FunnelPlotCustomPainter(
         viewService.context,
         color: Colors.blue,
         funnelPoltData: fd
        ),
     ),
  ),

i use canvas to draw a funnel dirgram,but i can't click it.i am confused.

nvoigt
  • 75,013
  • 26
  • 93
  • 142
  • What do you mean you cannot click it? What did you do? What did you expect to happen? What happened instead? – nvoigt Aug 11 '20 at 09:35
  • Is `hitTest` being called in your `CustomPaint` like this answer is suggesting? https://stackoverflow.com/a/61928397/6704033 – Er1 Aug 11 '20 at 09:46

0 Answers0