Skip to content

Commit bcd1f83

Browse files
committed
refactor: Update DeviceCard styling for improved UI consistency and readability
1 parent 142ece8 commit bcd1f83

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

client/lib/features/devices/views/device_card.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DeviceCard extends StatelessWidget {
3030
selector: (_, vm) => (isOnline: vm.isOnline, isPowerOn: vm.isPowerOn, name: vm.deviceEntity.name),
3131
builder: (context, status, _) {
3232
final colorScheme = Theme.of(context).colorScheme;
33-
final bgColor = colorScheme.surfaceContainerHighest;
33+
final bgColor = colorScheme.surfaceContainer;
3434
final fgColor = colorScheme.onSurface;
3535

3636
return ClipRRect(
@@ -53,7 +53,7 @@ class DeviceCard extends StatelessWidget {
5353
Row(
5454
crossAxisAlignment: CrossAxisAlignment.center,
5555
children: [
56-
moduleMeta.deviceIconBuilder(context, 16, status.isOnline),
56+
moduleMeta.deviceIconBuilder(context, 24, status.isOnline),
5757
const SizedBox(width: 4),
5858
Expanded(
5959
child: Text(
@@ -62,7 +62,7 @@ class DeviceCard extends StatelessWidget {
6262
overflow: TextOverflow.ellipsis,
6363
style: Theme.of(
6464
context,
65-
).textTheme.labelMedium?.copyWith(color: Theme.of(context).colorScheme.primary),
65+
).textTheme.titleSmall?.copyWith(color: Theme.of(context).colorScheme.onSurface),
6666
),
6767
),
6868
_buildPopupMenu(context, fgColor),
@@ -166,12 +166,13 @@ class DeviceCard extends StatelessWidget {
166166
scrollDirection: Axis.horizontal,
167167
child: Row(
168168
mainAxisSize: MainAxisSize.min,
169+
crossAxisAlignment: CrossAxisAlignment.center,
169170
children: [
170171
for (int i = 0; i < widgets.length; i++) ...[
171172
if (i > 0)
172-
Padding(
173-
padding: const EdgeInsets.symmetric(horizontal: 3),
174-
child: Icon(Icons.fiber_manual_record, size: 4, color: fgColor.withValues(alpha: 0.5)),
173+
SizedBox(
174+
height: 12,
175+
child: VerticalDivider(thickness: 1.5, width: 8, color: fgColor.withValues(alpha: 0.38)),
175176
),
176177
widgets[i],
177178
],

0 commit comments

Comments
 (0)