Q:

Fluter - Custom Radio Buttons

I am trying to build a form in my Flutter app and I want to have the user select multiple items, similar to a radio button.
I just dont like the way radio buttons look, so I want something more along the lines of a material button like what is below.

I have tried building this is a list view, but I cant get it to behave like a radio button or a selector button
Right now, I have attempted to do a few options, but I really just want to have a material button look that they act like radio buttons and when I submit the form the data within the buttons will transfer through.

A:

I am not sure if I got you, here is what you can do. You can track which button was clicked by the following bool flags. 
bool _selected1 = false, _selected2 = false, _selected3 = false;

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: Text("RadioButton")),
    body: Column(
      children: <Widget>[
        RaisedButton(
          color: _selected1 ? Colors.deepOrange : Colors.green,
          onPressed: () => setState(() => _selected1 = !_selected1),
          child: Text("Me"),
        ),
        RaisedButton(
          color: _selected2 ? Colors.deepOrange : Colors.green,
          onPressed: () => setState(() => _selected2 = !_selected2),
          child: Text("My Family"),
        ),
        RaisedButton(
          color: _selected3 ? Colors.deepOrange : Colors.green,
          onPressed: () => setState(() => _selected3 = !_selected3),
          child: Text("Someone Else"),
        ),
      ],
    ),
  );
}

