以下是我的代码片段。我传入 editClick,将数据类对象添加到 chargeViewModel.contractSelfPay 中,该对象被观察为 itemList 状态。当我单击该图标时,我可以告诉 itemList 状态通过具有更多均匀间隔的编辑图标来接收更新。但是,BasicGrid Row 的高度不会使用 Intrinsic.Min进行拉伸。
\n如果我删除 IntrinsicSize.Min,即使行的高度被拉伸,分隔线也不再可以填充MaxHeight 以及图标列。无内在最小
\n@Composable\nfun ContractSelfPay(chargingViewModel: ChargingViewModel, editClick: () -> Unit = {}) {\n\n val itemList by chargingViewModel.contractSelfPay.observeAsState()\n\n val composeList: List<@Composable () -> Unit> = itemList?.map {\n @Composable {\n Row {\n TempFunc { StyledText(text = it.itemTitle) }\n TempFunc { StyledText(text = it.originalPrice.toString()) }\n TempFunc { StyledText(text = it.selfPay.toString(), color = self_pay_blue) }\n TempFunc { StyledText(text = it.count.toString()) }\n TempFunc { StyledText(text = (it.selfPay * it.count).toString()) …Run Code Online (Sandbox Code Playgroud)