@@ -115,28 +115,18 @@ class GenericBottomSheetPicker<T> extends StatelessWidget {
115115 itemBuilder: (context, index) {
116116 final entry = entries[index];
117117 final isSelected = entry.value == effective;
118- return Material (
119- color: Colors .transparent,
120- child: InkWell (
121- onTap: () => onValueSelected (entry.value),
122- child: Container (
123- padding: const EdgeInsets .symmetric (horizontal: 20 , vertical: 16 ),
124- child: Row (
125- children: [
126- Expanded (
127- child: Text (
128- entry.label,
129- style: theme.textTheme.bodyLarge? .copyWith (
130- color: isSelected ? colorScheme.primary : colorScheme.onSurface,
131- fontWeight: isSelected ? FontWeight .w500 : FontWeight .normal,
132- ),
133- ),
134- ),
135- if (isSelected) Icon (Icons .check, color: colorScheme.primary, size: 20 ),
136- ],
137- ),
118+ return ListTile (
119+ title: Text (
120+ entry.label,
121+ style: theme.textTheme.bodyLarge? .copyWith (
122+ color: isSelected ? colorScheme.primary : colorScheme.onSurface,
123+ fontWeight: isSelected ? FontWeight .w500 : FontWeight .normal,
138124 ),
139125 ),
126+ trailing: isSelected ? Icon (Icons .check, color: colorScheme.primary, size: 20 ) : null ,
127+ contentPadding: const EdgeInsets .symmetric (horizontal: 20 , vertical: 0 ),
128+ onTap: () => onValueSelected (entry.value),
129+ dense: true ,
140130 );
141131 },
142132 ),
0 commit comments