Goal: Drawing a border around the FlatButton whenever the user presses that button.
In other words: onPressed() is invoked ? -> DrawBorder()
Use Case: The final UI should allow the user to choose multiple Buttons, those chosen buttons should have a border to let the user know that they have been selected.
Problem: Can not draw the border programmatically, let alone having multiple buttons (About 9 buttons or so) in the same UI.
Button Code:
FlatButton(
color: kWhite,
onPressed: () {},
child: Image.asset('assets/images/gucci.jpg'),
shape: RoundedRectangleBorder( //Draw when user clicks on the button
side: BorderSide(
color: kDarkTitleColor, width: 1),
),
padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
),
