styled_widget
styled_widget copied to clipboard
Possible issue: animation and gesture inheritance to all children
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