fix: remove getRadio todo and delete contentPadding param (#8839)

This commit is contained in:
zuiyu 2024-07-26 10:31:01 +08:00 committed by GitHub
parent 1850d32f49
commit f0f50f0f03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1409,14 +1409,10 @@ class AndroidPermissionManager {
}
}
// TODO move this to mobile/widgets.
// Used only for mobile, pages remote, settings, dialog
// TODO remove argument contentPadding, its not used, getToggle() has not
RadioListTile<T> getRadio<T>(
Widget title, T toValue, T curValue, ValueChanged<T?>? onChange,
{EdgeInsetsGeometry? contentPadding, bool? dense}) {
{bool? dense}) {
return RadioListTile<T>(
contentPadding: contentPadding ?? EdgeInsets.zero,
visualDensity: VisualDensity.compact,
controlAffinity: ListTileControlAffinity.trailing,
title: title,