I have created a class that has a widget that I want to appear on the home page as many times as the button is pressed.
https://gyazo.com/f9cc3e2c1f48e9efeb7b1d1c9b0b988e
as you can observe in this picture, the 'home care kit' rectangles is the widget, and I want them to appear when you press the add device button.
Here is the code of the button:
child: RaisedButton(
elevation: 0,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(40.0),
side: BorderSide(color: Colors.transparent)),
onPressed: () {print('Clicked!');},
color: Colors.transparent,
textColor: Colors.white,
child: Text('Add Device', style: TextStyle(color: Colors.white, fontSize: 18)),
),
and the widget class is simply called HomeCareKit()