[ui] UI theme should match repertory blue #61
This commit is contained in:
@@ -128,39 +128,42 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: constants.padding),
|
const SizedBox(height: constants.padding),
|
||||||
IntrinsicWidth(
|
UnconstrainedBox(
|
||||||
child: DropdownButtonFormField<String>(
|
alignment: Alignment.centerLeft,
|
||||||
initialValue: _mountType.isEmpty ? null : _mountType,
|
child: FractionallySizedBox(
|
||||||
isExpanded: false,
|
widthFactor: 1.5,
|
||||||
decoration: createCommonDecoration(
|
child: IntrinsicWidth(
|
||||||
scheme,
|
child: DropdownButtonFormField<String>(
|
||||||
"Provider Type",
|
initialValue: _mountType.isEmpty ? null : _mountType,
|
||||||
Icons.storage,
|
isExpanded: false,
|
||||||
filled: false,
|
decoration: createCommonDecoration(
|
||||||
),
|
scheme,
|
||||||
dropdownColor: scheme.primary.withValues(
|
"Provider Type",
|
||||||
alpha: constants.primaryAlpha,
|
Icons.storage,
|
||||||
),
|
|
||||||
style: textTheme.bodyMedium?.copyWith(
|
|
||||||
color: scheme.onSurface.withValues(alpha: 0.96),
|
|
||||||
),
|
|
||||||
items: constants.providerTypeList.map((item) {
|
|
||||||
return DropdownMenuItem<String>(
|
|
||||||
value: item,
|
|
||||||
child: Text(
|
|
||||||
item,
|
|
||||||
style: textTheme.bodyMedium?.copyWith(
|
|
||||||
color: scheme.onSurface.withValues(alpha: 0.96),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
dropdownColor: scheme.primary.withValues(alpha: 0.8),
|
||||||
}).toList(),
|
style: textTheme.bodyMedium?.copyWith(
|
||||||
onChanged: (mountType) {
|
color: scheme.onSurface.withValues(alpha: 0.96),
|
||||||
_handleChange(
|
),
|
||||||
Provider.of<Auth>(context, listen: false),
|
items: constants.providerTypeList.map((item) {
|
||||||
mountType ?? '',
|
return DropdownMenuItem<String>(
|
||||||
);
|
value: item,
|
||||||
},
|
child: Text(
|
||||||
|
item,
|
||||||
|
style: textTheme.bodyMedium?.copyWith(
|
||||||
|
color: scheme.onSurface.withValues(alpha: 0.96),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}).toList(),
|
||||||
|
onChanged: (mountType) {
|
||||||
|
_handleChange(
|
||||||
|
Provider.of<Auth>(context, listen: false),
|
||||||
|
mountType ?? '',
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (_mountType.isNotEmpty && _mountType != 'Remote') ...[
|
if (_mountType.isNotEmpty && _mountType != 'Remote') ...[
|
||||||
|
Reference in New Issue
Block a user