| Parameter | Type | Description |
|---|---|---|
| text | String | |
| previewText | String text | |
| modifier | Modifier Modifier | |
| color | Color Color.Unspecified | |
| fontSize | TextUnit TextUnit.Unspecified | |
| fontStyle | FontStyle? null | |
| fontWeight | FontWeight? null | |
| fontFamily | FontFamily? null | |
| letterSpacing | TextUnit TextUnit.Unspecified | |
| textDecoration | TextDecoration? null | |
| textAlign | TextAlign? null | |
| lineHeight | TextUnit TextUnit.Unspecified | |
| overflow | TextOverflow TextOverflow.Clip | |
| softWrap | Boolean true | |
| maxLines | Int Int.MAX_VALUE | |
| minLines | Int 1 | |
| onTextLayout | ((TextLayoutResult) -> Unit)? = null,
style: TextStyle = LocalTextStyle.current, |
| Parameter | Type | Description |
|---|---|---|
| modifier | Modifier Modifier | |
| @FloatRange(0.0, 1.0) progress | Float | |
| color | Color | |
| label | String |
| Parameter | Type | Description |
|---|---|---|
| modifier | Modifier Modifier | |
| @FloatRange(0.0, 1.0) progress | Float | |
| color | Color | |
| label | String |
| Parameter | Type | Description |
|---|---|---|
| onActionClick | () -> Unit |
| Parameter | Type | Description |
|---|---|---|
| sharedTransitionScope | SharedTransitionScope | |
| animatedContentScope | AnimatedContentScope | |
| pokemon | Pokemon | |
| detailsViewModel | DetailsViewModel hiltViewModel(
key = pokemon.name,
creationCallback = { factory: DetailsViewModel.Factory ->
factory.create(pokemon)
} |
| Parameter | Type | Description |
|---|---|---|
| pokemon | Pokemon | |
| pokemonInfo | PokemonInfo? | |
| onPaletteLoaded | (Palette) -> Unit,
backgroundBrush: Brush, |
| Parameter | Type | Description |
|---|---|---|
| pokemonInfo | PokemonInfo |
| Parameter | Type | Description |
|---|---|---|
| pokemonInfo | PokemonInfo |
| Parameter | Type | Description |
|---|---|---|
| sharedTransitionScope | SharedTransitionScope | |
| animatedContentScope | AnimatedContentScope | |
| homeViewModel | HomeViewModel hiltViewModel() |
| Parameter | Type | Description |
|---|---|---|
| sharedTransitionScope | SharedTransitionScope | |
| animatedContentScope | AnimatedContentScope | |
| uiState | HomeUiState | |
| pokemonList | ImmutableList<Pokemon> | |
| fetchNextPokemonList | () -> Unit,
navigateToDetails: (Pokemon) -> Unit |
| Parameter | Type | Description |
|---|---|---|
| settingsViewModel | SettingsViewModel hiltViewModel() |