Enhance role selection dropdown styling in organization settings dialog

This commit is contained in:
Leon Bösche
2026-01-24 05:49:05 +01:00
parent b3d1e40130
commit 692e7767f3

View File

@@ -552,26 +552,32 @@ class _OrganizationSettingsDialogState
), ),
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
DropdownButtonFormField<String>( Theme(
initialValue: selectedRole, data: Theme.of(context).copyWith(
items: ['admin', 'member'].map((role) { splashFactory: NoSplash.splashFactory,
return DropdownMenuItem(value: role, child: Text(role)); buttonTheme: ButtonThemeData(splashColor: Colors.transparent),
}).toList(), ),
onChanged: (value) => selectedRole = value ?? 'member', child: DropdownButtonFormField<String>(
decoration: InputDecoration( initialValue: selectedRole,
labelText: 'Role', items: ['admin', 'member'].map((role) {
labelStyle: TextStyle(color: AppTheme.secondaryText), return DropdownMenuItem(value: role, child: Text(role));
border: OutlineInputBorder( }).toList(),
borderSide: BorderSide( onChanged: (value) => selectedRole = value ?? 'member',
color: AppTheme.accentColor.withValues(alpha: 0.3), decoration: InputDecoration(
labelText: 'Role',
labelStyle: TextStyle(color: AppTheme.secondaryText),
border: OutlineInputBorder(
borderSide: BorderSide(
color: AppTheme.accentColor.withValues(alpha: 0.3),
),
), ),
), focusedBorder: OutlineInputBorder(
focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: AppTheme.accentColor),
borderSide: BorderSide(color: AppTheme.accentColor), ),
), enabledBorder: OutlineInputBorder(
enabledBorder: OutlineInputBorder( borderSide: BorderSide(
borderSide: BorderSide( color: AppTheme.accentColor.withValues(alpha: 0.3),
color: AppTheme.accentColor.withValues(alpha: 0.3), ),
), ),
), ),
), ),