Skip to content

Commit 1fdfa3d

Browse files
committed
added some padding to add new gear scan cards
1 parent 4c5af0d commit 1fdfa3d

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

lib/Frontend/Widgets/scan_for_new_device.dart

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,26 +148,34 @@ class _ScanGearListState extends State<ScanGearList> {
148148
return Card(
149149
clipBehavior: Clip.antiAlias,
150150
child: InkWell(
151-
child: Column(
152-
children: [
153-
Expanded(
154-
flex: 5,
155-
child: deviceDefinition!.deviceType
156-
.icon(175, iconColor),
157-
),
158-
Expanded(
159-
flex: 1,
160-
child: Text(
161-
style: Theme.of(
162-
context,
163-
).textTheme.headlineSmall,
164-
convertToUwU(
165-
deviceDefinition.friendlyName ??
166-
"",
151+
child: Padding(
152+
padding: const EdgeInsets.all(8.0),
153+
child: Column(
154+
mainAxisSize: MainAxisSize.min,
155+
mainAxisAlignment:
156+
MainAxisAlignment.center,
157+
crossAxisAlignment:
158+
CrossAxisAlignment.center,
159+
children: [
160+
Expanded(
161+
flex: 5,
162+
child: deviceDefinition!.deviceType
163+
.icon(200, iconColor),
164+
),
165+
Expanded(
166+
flex: 1,
167+
child: Text(
168+
style: Theme.of(
169+
context,
170+
).textTheme.headlineSmall,
171+
convertToUwU(
172+
deviceDefinition.friendlyName ??
173+
"",
174+
),
167175
),
168176
),
169-
),
170-
],
177+
],
178+
),
171179
),
172180
onTap: () async {
173181
await createAndConnect(

0 commit comments

Comments
 (0)