mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-22 00:59:35 +02:00
Moved remove input/output icons to trailing side
This commit is contained in:
parent
500dc297d3
commit
dd62a26004
1 changed files with 4 additions and 4 deletions
|
@ -173,7 +173,8 @@ class EditComponentPage extends HookWidget {
|
|||
SliverList(
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, idx) => ListTile(
|
||||
leading: inputs.value.length > 1 ? IconButton(
|
||||
title: Text(inputs.value[idx]),
|
||||
trailing: inputs.value.length > 1 ? IconButton(
|
||||
icon: const Icon(Icons.remove_circle),
|
||||
color: Colors.red,
|
||||
tooltip: 'Remove input ${inputs.value[idx]}',
|
||||
|
@ -223,7 +224,6 @@ class EditComponentPage extends HookWidget {
|
|||
}
|
||||
},
|
||||
) : null,
|
||||
title: Text(inputs.value[idx]),
|
||||
),
|
||||
childCount: inputs.value.length,
|
||||
),
|
||||
|
@ -266,7 +266,8 @@ class EditComponentPage extends HookWidget {
|
|||
SliverList(
|
||||
delegate: SliverChildBuilderDelegate(
|
||||
(context, idx) => ListTile(
|
||||
leading: outputs.value.length > 1 ? IconButton(
|
||||
title: Text(outputs.value[idx]),
|
||||
trailing: outputs.value.length > 1 ? IconButton(
|
||||
icon: const Icon(Icons.remove_circle),
|
||||
color: Colors.red,
|
||||
tooltip: 'Remove output ${outputs.value[idx]}',
|
||||
|
@ -306,7 +307,6 @@ class EditComponentPage extends HookWidget {
|
|||
}
|
||||
},
|
||||
) : null,
|
||||
title: Text(outputs.value[idx]),
|
||||
),
|
||||
childCount: outputs.value.length,
|
||||
),
|
||||
|
|
Loading…
Add table
Reference in a new issue