title: How to add styling to selected ListTile in Flutter?
body: <p>I have multiple List Tiles and I want to add a few styles to the one which is selected. To set the color of the selected tile, I have used <code>ListTileTheme</code> so whichever tile gets selected will get the color defined in <code>ListTileTheme</code>.</p>
  <pre class="lang-dart prettyprint-override"><code>ListTileTheme(
    selectedTileColor: Colors.white,
    child: ...
  ),
  </code></pre>
  <p>I also want to set border radius on top left and bottom left of <code>ListTile</code>, for this purpose I am using <code>ClipRRect</code></p>
  <pre class="lang-dart prettyprint-override"><code>ClipRRect(
    borderRadius: BorderRadius.only(
      topLeft: Radius.circular(32),
      bottomLeft: Radius.circular(32),
    ),
    child: ListTile(
      leading: Icon(Icons.people),
      title: Text('Teams'),
      onTap: () {},
      selected: true,
    ),
  ),
  </code></pre>
  <p>This works well as can be seen in the image below:</p>
  <p><a href="https://i.stack.imgur.com/OZD7T.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OZD7T.png" alt="enter image description here" /></a></p>
  <p>but I had to manually add it to a particular list tile. Unlike selected tile color which was defined once and it got applied automatically on any tile where the selected property is true, how to set <code>ClipRRect</code> too in similar fashion so that whichever tile gets selected receives border radius on top left and bottom left?</p>