I was using FlatButton
and passed the properties
FlatButton(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
child: ...,
)
The documentation says that FlatButton will become obsolete, and to use TextButton
instead, but it does not take splashColor
or highlightColor
properties
TextButton(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
child: ...,
)
does not work. it is not allowed
I also tried like this
TextButton(
style: ButtonStyle(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
),
child: ...,
)
How can I do this? Thank you