JHBitencourt / timeline_tile

A package to help build customisable timelines in Flutter.
https://pub.dev/packages/timeline_tile
MIT License
743 stars 146 forks source link

Feature Request: Add onTap #5

Open chitgoks opened 4 years ago

chitgoks commented 4 years ago

Would be nice to have this.

JHBitencourt commented 4 years ago

A callback to add onTap functionality to the default indicator is definitely a good suggestion. The question is if I should ignore it when a custom indicator is provided. Considering that this custom indicator may have its own onTap callback.

chitgoks commented 4 years ago

for now what i did was add gesturedetector on the TimelineTile. and in the indicator property, i replaced it with a circleavatar with iconbutton as child so the indicator is clickable. then set the indicator style to 50,50 width height to have it the same size as your circle default painted canvas.