Closed Jupi007 closed 4 months ago
This PR fix the property name, and add more flexibility in the way you can customize the colors:
YaruWindowControl( ... backgroundColor: MaterialStateProperty.resolveWith((states) { if (states.contains(MaterialState.pressed)) { return Colors.green; } if (states.contains(MaterialState.hovered)) { return Colors.blue; } if (states.contains(MaterialState.disabled)) { return Colors.yellow; } return null; }), ),
It should be reacting in the same way as previously if you use MaterialStatePropertyAll.
MaterialStatePropertyAll
This PR fix the property name, and add more flexibility in the way you can customize the colors: