Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LazyListScope#itemsIndexed #917

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

veyndan
Copy link
Contributor

@veyndan veyndan commented Apr 17, 2023

Adds function to add a items where each item is aware of its index, similar to the function in Compose UI's implementation.

@veyndan veyndan changed the title Add LazyListScope#itemsIndexed Add LazyListScope#itemsIndexed Apr 17, 2023
Base automatically changed from veyndan/LazyDsl to trunk April 17, 2023 18:42
@veyndan veyndan force-pushed the veyndan/add-LazyListScope-itemsIndexed branch from 4f90660 to 6445c7b Compare April 18, 2023 09:34
@veyndan veyndan enabled auto-merge (squash) April 18, 2023 09:34
@veyndan veyndan force-pushed the veyndan/add-LazyListScope-itemsIndexed branch from 6445c7b to b4de466 Compare April 18, 2023 10:37
@veyndan veyndan merged commit c56178a into trunk Apr 18, 2023
@veyndan veyndan deleted the veyndan/add-LazyListScope-itemsIndexed branch April 18, 2023 11:19
colinrtwhite added a commit that referenced this pull request Apr 19, 2023
* trunk:
  Ensure children lambda type returns Unit (#932)
  Respect event type nullability (#931)
  Update kotlin monorepo to v1.8.20 (#889)
  No default for embedded Zipline code (#926)
  Annotate schema properties, not parameters (#924)
  Propagate network failures in Emoji Search (#927)
  Cancel HTTP call on coroutine cancellation in Emoji Search (#928)
  Remove empty lambda from jvm target declaration (#925)
  Add LazyListScope#itemsIndexed (#917)
  Parse and generate deprecations from the schema (#922)
  Add LazyListScope#items(Array<T>, …) and LazyListScope#itemsIndexed(Array<T>, …) (#918)
  Add LazyListScope#item (#916)
  Expose the host's safe area insets in HostConfiguration. (#913)
  Move LazyListScope to LazyDsl.kt (#915)
  Update jbCompose to v1.4.0 (#904)
  Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.25.2 (#914)
  Update dependency com.android.tools.lint:lint to v31 (#911)
  Build treehouse-lazylayout-compose on all platforms (#909)
  Add instructions for building the Counter app for iOS/Android. (#906)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants