I have the following text widget
Text(
todo.todoText!,
style: TextStyle(
fontSize: 16,
color: (isDark) ? Colors.white : Colors.black87,
decoration: todo.isDone ? TextDecoration.lineThrough : null),
decorationColor: (isDark) ? Colors.white : Colors.black87 // error
)
This is the error I get:
The named parameter ‘decorationColor’ isn’t defined. Try correcting the name to an existing named parameter’s name, or defining a named parameter with the name ‘decorationColor’
As far as the official docs goes
There is indeed a named parameter called decorationColor
. Please help me out 🙂