I have an expansion tile in my app. I want to reduce the default height of this widget. I have used different solutions available but none works as expected. Below is my code snippet.
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 18.0),
child: ListTileTheme(
dense: true,
horizontalTitleGap: 0.0,
minLeadingWidth: 0,
contentPadding: EdgeInsets.zero,
child: ExpansionTile(
title: AppText(
'+ More',
textStyle: textStyle,
textAlign: TextAlign.center,
),
backgroundColor: AppColors.whiteColor,
collapsedBackgroundColor: AppColors.whiteColor,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.zero,
),
trailing: const SizedBox(height: 0),
children: const <Widget>[
ListTile(title: Text('This is tile number 1')),
],
),
),
),