From 30e940a7820bc3ee3c63cd0e89285f00fd97f238 Mon Sep 17 00:00:00 2001
From: vjrj <vjrj@comunes.org>
Date: Fri, 15 Dec 2023 23:16:14 +0100
Subject: [PATCH] Add icon to card name editable

---
 lib/ui/widgets/first_screen/card_name_editable.dart | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/ui/widgets/first_screen/card_name_editable.dart b/lib/ui/widgets/first_screen/card_name_editable.dart
index ce58002a..cad0b345 100644
--- a/lib/ui/widgets/first_screen/card_name_editable.dart
+++ b/lib/ui/widgets/first_screen/card_name_editable.dart
@@ -177,13 +177,19 @@ class _CardNameEditableState extends State<CardNameEditable> {
         overflow: TextOverflow.ellipsis,
         text: TextSpan(
           style: DefaultTextStyle.of(context).style,
-          children: <TextSpan>[
+          children: <InlineSpan>[
             if (currentText == widget.defValue)
               TextSpan(
                 text: currentText.toUpperCase(),
                 style: const TextStyle(
                     fontFamily: 'SourceCodePro', color: Colors.grey),
               ),
+            if (currentText == widget.defValue)
+              const WidgetSpan(
+                child: Padding(
+                    padding: EdgeInsets.fromLTRB(2, 0, 0, 0),
+                    child: Icon(Icons.edit, size: 14.0, color: Colors.white)),
+              ),
             if (currentText.isNotEmpty && currentText != widget.defValue)
               TextSpan(
                 text: currentText,
-- 
GitLab