I have a Scaffold parent widget where I defined a variable transforms that contains a vector of Offset.
The child widget is supposed to display those points with CustomPainter.
For now, I just passed my variable transforms as an argument to the child widget.
The problem is, I want to add an element to my vector each time we pressed the floatingActionButton, which is written in my parent widget ; and when I click on it, it does not appear on the screen (the child doesn't get the information).
So how to make widgets communicate?