ratioBaseOnWidth property

bool? ratioBaseOnWidth
final

By default, ConstraintLayout will automatically decide which side to base on and calculate the size of the other side based on widthHeightRatio. But if both sides are matchConstraint, it cannot be determined automatically. At this point, you need to specify the ratioBaseOnWidth parameter. The default value of null means automatically decide

Implementation

final bool? ratioBaseOnWidth;