07-21-2023, 09:06 PM
I was using `FlatButton` and passed the properties
FlatButton(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
child: ...,
)
The [documentation says that FlatButton will become obsolete][1], 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
[1]:
FlatButton(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
child: ...,
)
The [documentation says that FlatButton will become obsolete][1], 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
[1]:
[To see links please register here]