styled_widget icon indicating copy to clipboard operation
styled_widget copied to clipboard

Possible issue: animation and gesture inheritance to all children

Open ReinBentdal opened this issue 5 years ago • 0 comments

styled_widget uses InheritedWidget to pass animations down to children. This means defined animations in one Widget is passed down to all later children of the widget.

styled_widget also uses InheritedWidget for gestures to make the ripple method possible with InkWell. If onTap isnt inherited from GestureDetector the method wont trigger. Therefore all later children with a ripple method will inherit the onTap method. This can maybe be fixed by implementing some logic in the InheritedWidget which only allows two children (GestureDetector and one InkWell) to access the method

ReinBentdal avatar Feb 18 '20 20:02 ReinBentdal