vi-k / bubble

Speech bubble for Flutter
BSD 2-Clause "Simplified" License
268 stars 58 forks source link

[feat] Add onTap & onLongPress callback #16

Closed hsul4n closed 4 years ago

hsul4n commented 4 years ago

Looks great to implement onTap & onLongPress to handle click action.

For example:

Bubble(
  onTap: () {
    print('Hello from onTap');
  },
  onLongPress: () {
    print('Hello from onLongPress');
  },
  // .. other properties
),
vi-k commented 4 years ago

I'm not sure that's a good idea. Use GestureDetector!

shinriyo commented 4 years ago

@hsul4n did you resolve?

hsul4n commented 4 years ago

@hsul4n did you resolve?

as @vi-k says GestureDetector works like charm!