From c03877aa5833646c3f21b427d52d6f34f392dd3e Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Thu, 4 Sep 2025 11:31:16 -0500 Subject: [PATCH] [ui] UI theme should match repertory blue #61 --- .../lib/screens/add_mount_screen.dart | 67 ++++++++++--------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/web/repertory/lib/screens/add_mount_screen.dart b/web/repertory/lib/screens/add_mount_screen.dart index 8a0e304e..5f12fd96 100644 --- a/web/repertory/lib/screens/add_mount_screen.dart +++ b/web/repertory/lib/screens/add_mount_screen.dart @@ -128,39 +128,42 @@ class _AddMountScreenState extends State { ], ), const SizedBox(height: constants.padding), - IntrinsicWidth( - child: DropdownButtonFormField( - 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( - 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( + initialValue: _mountType.isEmpty ? null : _mountType, + isExpanded: false, + decoration: createCommonDecoration( + scheme, + "Provider Type", + Icons.storage, ), - ); - }).toList(), - onChanged: (mountType) { - _handleChange( - Provider.of(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( + value: item, + child: Text( + item, + style: textTheme.bodyMedium?.copyWith( + color: scheme.onSurface.withValues(alpha: 0.96), + ), + ), + ); + }).toList(), + onChanged: (mountType) { + _handleChange( + Provider.of(context, listen: false), + mountType ?? '', + ); + }, + ), + ), ), ), if (_mountType.isNotEmpty && _mountType != 'Remote') ...[