constraintlayout
constraintlayout copied to clipboard
[Compose MotionLayout] Custom color not properly initialized sometimes
Ex: ConstraintSets: { collapsed: { fab: { width: 50, height: 50, centerHorizontally: 'parent', bottom: ['parent', 'bottom', 8], custom: { background: '#6200EE' } }, }, expanded: { fab: { width: 'spread', height: 400, start: ['parent', 'start', 8], end: ['parent', 'end', 8], bottom: ['parent', 'bottom', 8], top: ['parent', 'top', 8], custom: { background: '#ffffff' } }, } }
Issue might be that the state is not set before the first Composition is done.