[ui] UI theme should match repertory blue #61

This commit is contained in:
2025-09-04 11:31:16 -05:00
parent 36ef520cf2
commit c03877aa58

View File

@@ -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') ...[