AsyncImage
Displays an image from a local file or remote URL.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| src | String | The URL of the image. Example: ‚https://example.com/image.jpg‘. | |
| weight | Int | 0 | Determines how much space the image takes relative to other elements in the same layout. Use 0 for no weight-based resizing. |
| width | Int | 0 | Fixed width of the image in dp. Use 0 for automatic sizing. |
| height | Int | 0 | Fixed height of the image in dp. Use 0 for automatic sizing. |
| scale | String | Defines how the image should be scaled within its bounds. Options include: ‚Fit‘, ‚Fill‘, ‚Crop‘, ‚Inside‘. | |
| alignment | String | Center | How the image is aligned inside its layout container. Options: Start, Center, End, Top, Bottom. |
