Search code examples
flutterdartflutter-layout

Flutter: CheckboxListTile remove default padding


I'm looking to remove this padding around my row of CheckboxListTiles, but haven't found any information on how to do this without making my own version of a checkbox.

enter image description here

Is there any way to (using the CheckboxListTile):

  1. Remove the (blue) left and right padding of the CheckboxListTile
  2. Increase the width of the text area (I've tried sizedbox, containers, etc with no luck)

Solution

  • UPDATE: There is no need to use ListTitleTheme anymore. contentPadding is now one of CheckboxListTile's properties. We can now remove the default padding like this:

    CheckboxListTile(
     contentPadding: EdgeInsets.zero,
    )