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 AMefemoney
03/11/2023, 11:17 AMTolriq
03/11/2023, 11:17 AMefemoney
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 AMTolriq
03/11/2023, 11:18 AMefemoney
03/11/2023, 11:19 AMefemoney
03/11/2023, 11:26 AMTolriq
03/11/2023, 11:35 AMTolriq
03/11/2023, 11:35 AMefemoney
03/11/2023, 11:36 AMefemoney
03/11/2023, 11:37 AMTolriq
03/11/2023, 11:37 AMTolriq
03/11/2023, 11:37 AMTolriq
03/11/2023, 11:38 AMTolriq
03/11/2023, 11:38 AMefemoney
03/11/2023, 11:40 AMTolriq
03/11/2023, 11:41 AMefemoney
03/11/2023, 11:41 AMefemoney
03/11/2023, 11:42 AMTolriq
03/11/2023, 11:43 AMefemoney
03/11/2023, 11:44 AMefemoney
03/11/2023, 11:49 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
efemoney
03/11/2023, 2:37 PMefemoney
03/11/2023, 2:39 PMTolriq
03/11/2023, 2:44 PMefemoney
03/11/2023, 2:45 PMTolriq
03/11/2023, 3:17 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.
Tolriq
03/11/2023, 3:17 PMefemoney
03/11/2023, 3:38 PMefemoney
03/11/2023, 3:39 PMefemoney
03/11/2023, 3:40 PMTolriq
03/11/2023, 3:55 PMefemoney
03/11/2023, 4:08 PMTolriq
03/11/2023, 4:23 PMTolriq
03/11/2023, 4:24 PMefemoney
03/11/2023, 4:24 PMefemoney
03/11/2023, 4:25 PMTolriq
03/11/2023, 4:26 PMTolriq
03/11/2023, 4:26 PMTolriq
03/11/2023, 4:59 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 PMTolriq
03/11/2023, 5:44 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 PMTolriq
03/11/2023, 6:18 PMArjan van Wieringen
03/12/2023, 8:02 AMTolriq
03/12/2023, 8:57 AMTolriq
03/13/2023, 7:07 PM