Closed gbassipxl closed 10 months ago
Hi @gbassipxl,
Thanks for raising this issue - we have filed a ticket internally to make the change, and we will respond on this thread once it is released.
Hi @gbassipxl,
We have released Flutter version 6.0.0 which fixes this issue. Thanks for bringing it to our attention!
Hey there, just mentioning that there is a bug in the deserialisation logic for the BrazeContentCard.imageAspectRatio property: https://github.com/braze-inc/braze-flutter-sdk/blob/master/lib/braze_plugin.dart#L680
When ratio is an integer, it doesn't meet that condition logic and keeps its default value of 1. Pretty easy to confirm with the following test:
Quick and simple fix would be to replace that condition logic by:
imageAspectRatioJson is num
Implicit cast will take care of integers upon assignment.I can work around it no problem, but I'd love not having to :)
Thanks!