Expanded is a function to help you organize the layout of your view. It makes the component passed as parameter expand its size to all the available space. This is achieved by setting
width to 100%,
height to 100%,
grow to 1.0.
See how the structure is represented:
|self||StyleComponent||✓||Component to receive the style.|
Expanded( self = Text(text = "simple text") )
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.