Say I have a component that is re-used across mobile and desktop e.g. a button.
Hypothetically on desktop the button should be 32x32 and on mobile it should be 40x40, among other differences.
Assuming I make the distinction between platforms based on the foundation.dart property: defaultTargetPlatform in the button -- is there a way for me to run my golden tests/scenarios against both platforms?
I've looked into AlchemistConfig but can find any way to specific these type of variation.
I also tried to hack it manually but it didn't work (I have the same golden images for both):
Say I have a component that is re-used across mobile and desktop e.g. a button.
Hypothetically on desktop the button should be 32x32 and on mobile it should be 40x40, among other differences.
Assuming I make the distinction between platforms based on the
foundation.dart
property:defaultTargetPlatform
in the button -- is there a way for me to run my golden tests/scenarios against both platforms?I've looked into
AlchemistConfig
but can find any way to specific these type of variation.I also tried to hack it manually but it didn't work (I have the same golden images for both):
Any advice on how to test goldens agains multiple target platforms in a nice way?
Or any idea why even my hack solution does not work?
Thanks in advance, Cillian.