Enhance role selection dropdown styling in organization settings dialog
This commit is contained in:
@@ -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),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user