Refactor role selection dropdown to use Material widget for improved styling and tap target size
This commit is contained in:
@@ -556,16 +556,17 @@ class _OrganizationSettingsDialogState
|
|||||||
data: Theme.of(context).copyWith(
|
data: Theme.of(context).copyWith(
|
||||||
splashFactory: NoSplash.splashFactory,
|
splashFactory: NoSplash.splashFactory,
|
||||||
buttonTheme: ButtonThemeData(splashColor: Colors.transparent),
|
buttonTheme: ButtonThemeData(splashColor: Colors.transparent),
|
||||||
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
highlightColor: Colors.transparent,
|
||||||
|
splashColor: Colors.transparent,
|
||||||
),
|
),
|
||||||
child: DropdownButtonFormField<String>(
|
child: DropdownButtonFormField<String>(
|
||||||
initialValue: selectedRole,
|
initialValue: selectedRole,
|
||||||
items: ['admin', 'member'].map((role) {
|
items: ['admin', 'member'].map((role) {
|
||||||
return DropdownMenuItem(
|
return DropdownMenuItem(
|
||||||
value: role,
|
value: role,
|
||||||
child: InkWell(
|
child: Material(
|
||||||
splashFactory: NoSplash.splashFactory,
|
type: MaterialType.transparency,
|
||||||
highlightColor: Colors.transparent,
|
|
||||||
splashColor: Colors.transparent,
|
|
||||||
child: Text(role),
|
child: Text(role),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user