),

TextButton

style:

ButtonStyle

overlayColor:

MaterialStateProperty

resolveWith

Color

>(

Set

MaterialState

states

if

states

contains

MaterialState

focused

))

return

Colors

red

if

states

contains

MaterialState

hovered

))

return

Colors

green

if

states

contains

MaterialState

pressed

))

return

Colors

blue