Enhance role selection dropdown with custom InkWell and update dropdown color
This commit is contained in:
@@ -560,8 +560,17 @@ class _OrganizationSettingsDialogState
|
|||||||
child: DropdownButtonFormField<String>(
|
child: DropdownButtonFormField<String>(
|
||||||
initialValue: selectedRole,
|
initialValue: selectedRole,
|
||||||
items: ['admin', 'member'].map((role) {
|
items: ['admin', 'member'].map((role) {
|
||||||
return DropdownMenuItem(value: role, child: Text(role));
|
return DropdownMenuItem(
|
||||||
|
value: role,
|
||||||
|
child: InkWell(
|
||||||
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
highlightColor: Colors.transparent,
|
||||||
|
splashColor: Colors.transparent,
|
||||||
|
child: Text(role),
|
||||||
|
),
|
||||||
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
dropdownColor: AppTheme.primaryBackground,
|
||||||
onChanged: (value) => selectedRole = value ?? 'member',
|
onChanged: (value) => selectedRole = value ?? 'member',
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: 'Role',
|
labelText: 'Role',
|
||||||
|
|||||||
Reference in New Issue
Block a user