Skip to content

Commit

Permalink
Merge pull request #1601 from uchennafokoye/main
Browse files Browse the repository at this point in the history
Deprecate FlowLayout: update migration links in Accompanist
  • Loading branch information
bentrengrove committed May 4, 2023
2 parents 843e648 + c5f2e74 commit 8373961
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ A library that provides [Android runtime permissions][runtimepermissions] suppor
### [Placeholder](./placeholder/)
A library that provides easy-to-use modifiers for displaying a placeholder UI while content is loading.

### 🌊 [Flow Layouts](./flowlayout/) (Soon to be deprecated - Upstreamed in Compose 1.4)
A library that adds Flexbox-like layout components to Jetpack Compose.
### 🌊 [Flow Layouts](./flowlayout/) (Deprecated)
See our [Migration Guide](https://google.github.io/accompanist/flowlayout/) for migrating to FlowLayout in Compose.

### 🧭✨[Navigation-Animation](./navigation-animation/)
A library which provides [Compose Animation](https://developer.android.com/jetpack/compose/animation) support for Jetpack Navigation Compose.
Expand Down
2 changes: 2 additions & 0 deletions flowlayout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Maven Central](https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-flowlayout)](https://search.maven.org/search?q=g:com.google.accompanist)

> :warning: This library has been deprecated as official support is now available in Compose 1.4.0. Please see our [Migration Guide](https://google.github.io/accompanist/flowlayout/) for how to migrate.
Flow layouts adapted from the [Jetpack Compose][compose] alpha versions.

Unlike the standard Row and Column composables, these lay out children in multiple rows/columns if they exceed the available space.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import kotlin.math.max
@Deprecated(
"""
accompanist/FlowRow is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
""",
replaceWith = ReplaceWith(
"FlowRow",
Expand Down Expand Up @@ -98,7 +98,7 @@ public fun FlowRow(
@Deprecated(
"""
accompanist/FlowColumn is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
""",
replaceWith = ReplaceWith(
"FlowColumn",
Expand Down Expand Up @@ -135,7 +135,7 @@ public fun FlowColumn(
@Deprecated(
"""
accompanist/FlowCrossAxisAlignment is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
"""
)
public enum class FlowCrossAxisAlignment {
Expand All @@ -156,7 +156,7 @@ public enum class FlowCrossAxisAlignment {
@Deprecated(
"""
accompanist/FlowMainAxisAlignment is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
"""
)
public typealias FlowMainAxisAlignment = MainAxisAlignment
Expand All @@ -168,7 +168,7 @@ public typealias FlowMainAxisAlignment = MainAxisAlignment
@Deprecated(
"""
accompanist/Flow is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
"""
)
private fun Flow(
Expand Down Expand Up @@ -323,7 +323,7 @@ private fun Flow(
@Deprecated(
"""
accompanist/SizeMode is deprecated.
For more migration information, please visit https://google.github.io/accompanist/flowlayouts/#migration
For more migration information, please visit https://google.github.io/accompanist/flowlayout/
"""
)
public enum class SizeMode {
Expand Down

0 comments on commit 8373961

Please sign in to comment.