[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), | ||||
|             IntrinsicWidth( | ||||
|               child: DropdownButtonFormField<String>( | ||||
|                 initialValue: _mountType.isEmpty ? null : _mountType, | ||||
|                 isExpanded: false, | ||||
|                 decoration: createCommonDecoration( | ||||
|                   scheme, | ||||
|                   "Provider Type", | ||||
|                   Icons.storage, | ||||
|                   filled: false, | ||||
|                 ), | ||||
|                 dropdownColor: scheme.primary.withValues( | ||||
|                   alpha: constants.primaryAlpha, | ||||
|                 ), | ||||
|                 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), | ||||
|                       ), | ||||
|             UnconstrainedBox( | ||||
|               alignment: Alignment.centerLeft, | ||||
|               child: FractionallySizedBox( | ||||
|                 widthFactor: 1.5, | ||||
|                 child: IntrinsicWidth( | ||||
|                   child: DropdownButtonFormField<String>( | ||||
|                     initialValue: _mountType.isEmpty ? null : _mountType, | ||||
|                     isExpanded: false, | ||||
|                     decoration: createCommonDecoration( | ||||
|                       scheme, | ||||
|                       "Provider Type", | ||||
|                       Icons.storage, | ||||
|                     ), | ||||
|                   ); | ||||
|                 }).toList(), | ||||
|                 onChanged: (mountType) { | ||||
|                   _handleChange( | ||||
|                     Provider.of<Auth>(context, listen: false), | ||||
|                     mountType ?? '', | ||||
|                   ); | ||||
|                 }, | ||||
|                     dropdownColor: scheme.primary.withValues(alpha: 0.8), | ||||
|                     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), | ||||
|                           ), | ||||
|                         ), | ||||
|                       ); | ||||
|                     }).toList(), | ||||
|                     onChanged: (mountType) { | ||||
|                       _handleChange( | ||||
|                         Provider.of<Auth>(context, listen: false), | ||||
|                         mountType ?? '', | ||||
|                       ); | ||||
|                     }, | ||||
|                   ), | ||||
|                 ), | ||||
|               ), | ||||
|             ), | ||||
|             if (_mountType.isNotEmpty && _mountType != 'Remote') ...[ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user