From dd62a260045097816bf89232bf28ce7f3c7808ad Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Sun, 19 Jun 2022 08:02:21 +0300 Subject: [PATCH] Moved remove input/output icons to trailing side --- lib/pages/edit_component.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/edit_component.dart b/lib/pages/edit_component.dart index 204c368..b24ac3a 100644 --- a/lib/pages/edit_component.dart +++ b/lib/pages/edit_component.dart @@ -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, ),