Skip to content
Snippets Groups Projects
Commit 30e940a7 authored by vjrj's avatar vjrj
Browse files

Add icon to card name editable

parent ac59beda
No related branches found
No related tags found
No related merge requests found
...@@ -177,13 +177,19 @@ class _CardNameEditableState extends State<CardNameEditable> { ...@@ -177,13 +177,19 @@ class _CardNameEditableState extends State<CardNameEditable> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
text: TextSpan( text: TextSpan(
style: DefaultTextStyle.of(context).style, style: DefaultTextStyle.of(context).style,
children: <TextSpan>[ children: <InlineSpan>[
if (currentText == widget.defValue) if (currentText == widget.defValue)
TextSpan( TextSpan(
text: currentText.toUpperCase(), text: currentText.toUpperCase(),
style: const TextStyle( style: const TextStyle(
fontFamily: 'SourceCodePro', color: Colors.grey), 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) if (currentText.isNotEmpty && currentText != widget.defValue)
TextSpan( TextSpan(
text: currentText, text: currentText,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment