listTileThemeData static method

ListTileThemeData listTileThemeData(
  1. Palette colors,
  2. TextTheme textTheme
)

Implementation

static ListTileThemeData listTileThemeData(
  Palette colors,
  TextTheme textTheme,
) {
  return ListTileThemeData(
    dense: true,
    shape: null,
    style: ListTileStyle.list,
    selectedColor: colors.fillHovered,
    iconColor: colors.fill,
    textColor: colors.text,
    titleTextStyle: textTheme.titleSmall!.copyWith(color: colors.text),
    subtitleTextStyle: textTheme.bodyLarge!.copyWith(color: colors.text),
    leadingAndTrailingTextStyle: textTheme.bodyMedium!.copyWith(
      color: colors.text,
    ),
    contentPadding: const EdgeInsets.symmetric(horizontal: 16.0),
    tileColor: colors.background,
    selectedTileColor: colors.fillHovered,
    horizontalTitleGap: 16,
    minVerticalPadding: 4,
    minLeadingWidth: 40,
    visualDensity: VisualDensity.adaptivePlatformDensity,
    titleAlignment: ListTileTitleAlignment.threeLine,
  );
}