Skip to content

Commit

Permalink
Remove unclear warning in AsyncImagePainter docs. (#2711)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite authored Nov 22, 2024
1 parent cff22db commit e188a3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ import kotlinx.coroutines.launch
/**
* Return an [AsyncImagePainter] that executes an [ImageRequest] asynchronously and renders the result.
*
* ** This is a lower-level API than [AsyncImage] and may not work as expected in all situations. **
*
* @param model Either an [ImageRequest] or the [ImageRequest.data] value.
* @param imageLoader The [ImageLoader] that will be used to execute the request.
* @param placeholder A [Painter] that is displayed while the image is loading.
Expand Down Expand Up @@ -100,8 +98,6 @@ fun rememberAsyncImagePainter(
/**
* Return an [AsyncImagePainter] that executes an [ImageRequest] asynchronously and renders the result.
*
* ** This is a lower-level API than [AsyncImage] and may not work as expected in all situations. **
*
* @param model Either an [ImageRequest] or the [ImageRequest.data] value.
* @param imageLoader The [ImageLoader] that will be used to execute the request.
* @param transform A callback to transform a new [State] before it's applied to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import coil3.request.ImageRequest
/**
* Return an [AsyncImagePainter] that executes an [ImageRequest] asynchronously and renders the result.
*
* ** This is a lower-level API than [AsyncImage] and may not work as expected in all situations. **
*
* @param model Either an [ImageRequest] or the [ImageRequest.data] value.
* @param placeholder A [Painter] that is displayed while the image is loading.
* @param error A [Painter] that is displayed when the image request is unsuccessful.
Expand Down Expand Up @@ -58,8 +56,6 @@ fun rememberAsyncImagePainter(
/**
* Return an [AsyncImagePainter] that executes an [ImageRequest] asynchronously and renders the result.
*
* ** This is a lower-level API than [AsyncImage] and may not work as expected in all situations. **
*
* @param model Either an [ImageRequest] or the [ImageRequest.data] value.
* @param transform A callback to transform a new [State] before it's applied to the
* [AsyncImagePainter]. Typically this is used to overwrite the state's [Painter].
Expand Down

0 comments on commit e188a3d

Please sign in to comment.