chanjungskim
01/14/2023, 8:46 AMZaki Shaikh
01/14/2023, 8:59 AMchanjungskim
01/14/2023, 9:04 AMDan MacNeil
01/14/2023, 4:13 PMLoney Chou
01/14/2023, 4:57 PMBox(
modifier = Modifier
.fillMaxSize()
.wrapContentSize(BiasAlignment(/* percentage */))
) {
// Your composable
}Loney Chou
01/14/2023, 5:12 PMBoxWithConstraints), simply pass size * percentage to `offset`; 2. Implement a custom Layout, and a ParentDataModifier which takes the percentage, then retrieve this parent data in the MeasurePolicy of this special Layout and calculate the actual position. You can see how BoxScope.matchParentSize works for method 2.Zach Klippenstein (he/him) [MOD]
01/15/2023, 5:43 AMAlan Lee
02/23/2023, 1:57 PMlinkTo(start = …, end = …, bias = 0.5f)Alan Lee
02/23/2023, 1:58 PMtop and bottom