{"id":20373167,"url":"https://github.com/st235/flowlayout","last_synced_at":"2025-04-12T06:50:47.879Z","repository":{"id":42054355,"uuid":"263094449","full_name":"st235/FlowLayout","owner":"st235","description":"Let your views flow 🐠","archived":false,"fork":false,"pushed_at":"2022-10-02T20:40:35.000Z","size":543,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T02:11:20.728Z","etag":null,"topics":["android","compose","flow","flowlayout","hacktoberfest","hacktoberfest2022","kotlin","layout","view","viewgroup","views-flow"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/st235.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-11T16:15:31.000Z","updated_at":"2025-02-09T08:56:16.000Z","dependencies_parsed_at":"2023-01-19T02:30:34.020Z","dependency_job_id":null,"html_url":"https://github.com/st235/FlowLayout","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FFlowLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FFlowLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FFlowLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st235%2FFlowLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st235","download_url":"https://codeload.github.com/st235/FlowLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248530605,"owners_count":21119595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","compose","flow","flowlayout","hacktoberfest","hacktoberfest2022","kotlin","layout","view","viewgroup","views-flow"],"created_at":"2024-11-15T01:16:57.582Z","updated_at":"2025-04-12T06:50:47.842Z","avatar_url":"https://github.com/st235.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"/images/tags.png\" width=\"467\" height=\"260\"\u003e\n\n# Flow layout\n\nSupports default android views and **new android compose**\n\n# FlowLayout\n\n![Min Android Sdk](https://img.shields.io/badge/minSdkVersion-16-212121.svg)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.st235/flow-layout.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.st235%22%20AND%20a:%22flow-layout%22)\n\nSmall library to support flexbox flow aligned views composition\n\n## Download it from\n\n__Important: library was migrated from JCenter to MavenCentral__ \n\nIt means that it may be necessary to add __mavenCentral__ repository to your repositories list\n\n```groovy\nallprojects {\n    repositories {\n        // your repositories\n\n        mavenCentral()\n    }\n}\n```\n\n- Maven\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.st235\u003c/groupId\u003e\n  \u003cartifactId\u003eflow-layout\u003c/artifactId\u003e\n  \u003cversion\u003eX.X.X\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n- Gradle\n\n```\nimplementation 'com.github.st235:flow-layout:X.X.X'\n```\n\n- Ivy\n\n```\n\u003cdependency org='com.github.st235' name='flow-layout' rev='X.X.X'\u003e\n  \u003cartifact name='flow-layout' ext='pom' \u003e\u003c/artifact\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```xml\n\n    \u003cst235.com.github.flowlayout.FlowLayout\n        android:id=\"@+id/flowLayout\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"wrap_content\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintLeft_toLeftOf=\"parent\"\n        app:layout_constraintRight_toRightOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\u003e\n        \n        ... child views goes here\n        \n    \u003c/st235.com.github.flowlayout.FlowLayout\u003e\n\n```\n\n## Xml attributes\n\n| property | type | description |\n| ----- | ----- | ----- |\n| **fl_gravity** | enum | possible values is: left, right, start, end, center, justify |\n\n# FlowLayout Compose\n\n![Min Android Sdk](https://img.shields.io/badge/minSdkVersion-21-212121.svg)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.st235/flow-layout-compose.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.st235%22%20AND%20a:%22flow-layout-compose%22)\n\n## Download\n\n__Important: library was migrated from JCenter to MavenCentral__\n\nIt means that it may be necessary to add __mavenCentral__ repository to your repositories list\n\n```groovy\nallprojects {\n    repositories {\n        // your repositories\n\n        mavenCentral()\n    }\n}\n```\n\n- Maven\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.st235\u003c/groupId\u003e\n  \u003cartifactId\u003eflow-layout-compose\u003c/artifactId\u003e\n  \u003cversion\u003eX.X.X\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n- Gradle\n\n```\nimplementation 'com.github.st235:flow-layout-compose:X.X.X'\n```\n\n- Ivy\n\n```\n\u003cdependency org='com.github.st235' name='flow-layout-compose' rev='X.X.X'\u003e\n  \u003cartifact name='flow-layout' ext='pom' \u003e\u003c/artifact\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```kotlin\nval scroll = rememberScrollState()\n\nFlowLayout(\n    direction = FlowLayoutDirection.START,\n    modifier = Modifier\n        .background(Color.White)\n        .verticalScroll(scroll)\n        .fillMaxWidth()\n) {\n    for (catName in stringArrayResource(id = R.array.cats_tags)) {\n        Text(\n            text = catName,\n            modifier = Modifier\n                .padding(8.dp, 4.dp)\n                .background(colorResource(id = R.color.colorGreyOp80), RoundedCornerShape(4.dp))\n                .padding(8.dp, 4.dp),\n            color = Color.White,\n            fontSize = 16.sp\n        )\n        Spacer(modifier = Modifier.padding(2.dp))\n    }\n}\n```\n\n# Screens\n\n| Left | Right |\n| ------------- | ------------- |\n| \u003cimg src=\"/images/left.png\" width=\"250\" height=\"150\"\u003e | \u003cimg src=\"/images/right.png\" width=\"250\" height=\"150\"\u003e\n\n| Center | Justify |\n| ------------- | ------------- |\n| \u003cimg src=\"/images/center.png\" width=\"250\" height=\"150\"\u003e | \u003cimg src=\"/images/justify.png\" width=\"250\" height=\"150\"\u003e |\n\n\n\n# License\n\n```\nMIT License\n\nCopyright (c) 2020 Alexander Dadukin\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst235%2Fflowlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst235%2Fflowlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst235%2Fflowlayout/lists"}