Refactor role selection dropdown to use Material widget for improved styling and tap target size

This commit is contained in:
Leon Bösche
2026-01-24 06:18:09 +01:00
parent a9c49a0282
commit 4770380e38

View File

@@ -556,16 +556,17 @@ class _OrganizationSettingsDialogState
data: Theme.of(context).copyWith(
splashFactory: NoSplash.splashFactory,
buttonTheme: ButtonThemeData(splashColor: Colors.transparent),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
),
child: DropdownButtonFormField<String>(
initialValue: selectedRole,
items: ['admin', 'member'].map((role) {
return DropdownMenuItem(
value: role,
child: InkWell(
splashFactory: NoSplash.splashFactory,
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
child: Material(
type: MaterialType.transparency,
child: Text(role),
),
);