Tolriq
03/11/2023, 10:26 AMArjan van Wieringen
03/11/2023, 10:45 AMTolriq
03/11/2023, 10:52 AMefemoney
03/11/2023, 10:54 AMTolriq
03/11/2023, 11:17 AMefemoney
03/11/2023, 11:17 AMfill
parameter, if you set that to false then it will let A growTolriq
03/11/2023, 11:18 AMefemoney
03/11/2023, 11:19 AMTolriq
03/11/2023, 11:35 AMefemoney
03/11/2023, 11:36 AMTolriq
03/11/2023, 11:37 AMefemoney
03/11/2023, 11:40 AMTolriq
03/11/2023, 11:41 AMefemoney
03/11/2023, 11:41 AMTolriq
03/11/2023, 11:43 AMefemoney
03/11/2023, 11:44 AMTolriq
03/11/2023, 11:49 AM(which ideally should mean those spacers have 0 height, not sure this part is as straightforward)
efemoney
03/11/2023, 11:49 AMTolriq
03/11/2023, 11:50 AMefemoney
03/11/2023, 11:50 AMTolriq
03/11/2023, 11:50 AMefemoney
03/11/2023, 11:50 AMTolriq
03/11/2023, 11:53 AMefemoney
03/11/2023, 11:59 AMLayout
, SubcomposeLayout
&/or Modifier.layout
Tolriq
03/11/2023, 2:44 PMefemoney
03/11/2023, 2:45 PMTolriq
03/11/2023, 3:17 PMjava.lang.IllegalStateException: Asking for intrinsic measurements of SubcomposeLayout layouts is not supported. This includes components that are built on top of SubcomposeLayout, such as lazy lists, BoxWithConstraints, TabRow, etc. To mitigate this:
- if intrinsic measurements are used to achieve 'match parent' sizing,, consider replacing the parent of the component with a custom layout which controls the order in which children are measured, making intrinsic measurement not needed
- adding a size modifier to the component, in order to fast return the queried intrinsic measurement.
efemoney
03/11/2023, 3:38 PMTolriq
03/11/2023, 3:55 PMefemoney
03/11/2023, 4:08 PMTolriq
03/11/2023, 4:23 PMefemoney
03/11/2023, 4:24 PMTolriq
03/11/2023, 4:26 PMAlbert Chang
03/11/2023, 5:30 PMModifier.weight(1f, fill = false)
on A seems enough to solve the problem.Tolriq
03/11/2023, 5:42 PMAlbert Chang
03/11/2023, 5:59 PMmaxHeight - intrinsicHeightOfB
, and then measure B with a max height constraint of maxHeight - heightOfA
.Tolriq
03/11/2023, 6:17 PMArjan van Wieringen
03/12/2023, 8:02 AMTolriq
03/12/2023, 8:57 AM