Update TextIconListTile padding and replace IconButton with GestureDetector

This commit is contained in:
2025-11-19 16:44:46 +01:00
parent 9365313c92
commit 201fd70685

View File

@@ -17,7 +17,7 @@ class TextIconListTile extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Container( return Container(
margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 5), margin: const EdgeInsets.symmetric(horizontal: 5, vertical: 5),
padding: const EdgeInsets.symmetric(horizontal: 10), padding: const EdgeInsets.symmetric(horizontal: 15),
decoration: BoxDecoration( decoration: BoxDecoration(
color: CustomTheme.boxColor, color: CustomTheme.boxColor,
border: Border.all(color: CustomTheme.boxBorder), border: Border.all(color: CustomTheme.boxBorder),
@@ -41,9 +41,9 @@ class TextIconListTile extends StatelessWidget {
), ),
), ),
if (iconEnabled) if (iconEnabled)
IconButton( GestureDetector(
icon: const Icon(Icons.add, size: 20), child: const Icon(Icons.add, size: 20),
onPressed: onPressed, onTap: onPressed,
), ),
], ],
), ),