Colors.transparent will deny any effects, simply it is transparent so it will appear as nothing happens… in ButtonStyle, it goes something like this with colors.
ButtonStyle(
overlayColor: MaterialStateColor.resolveWith((states) => Colors.red),
),