A simple tool to display a text tree with Jetpack Compose🌲

Overview

Kotree

A simple tool to display a text tree with Jetpack Compose.

root
β”œβ”€β”€ a
β”‚   β”œβ”€β”€ c
β”‚   β”‚   └── j
β”‚   β”‚       β”œβ”€β”€ k
β”‚   β”‚       └── l
β”‚   └── f
└── d
    β”œβ”€β”€ g
    └── h
fun main() {
    println(
        kotree {
            Content()
        }
    )
}
        
@Composable
private fun Content() {
    Node("root") {
        Node("a") {
            Node("c") {
                Node("j") {
                    Node("k")
                    Node("l")
                }
            }
            Node("f")
        }
        Node("d") {
            Node("g")
            Node("h")
        }
    }
}

Not only can you draw the tree manually, but you can also visualize the structure.

sampleproject
β”œβ”€β”€ src
β”‚   └── commonMain
β”‚       └── kotlin
β”œβ”€β”€ build.gradle.kts
└── settings.gradle.kts
@Composable
private fun FileNode(file: File) {
    Node(file.name) {
        file.listFiles().forEach {
            FileNode(it)
        }
    }
}
You might also like...
SvgToCompose - SVG path to Jetpack Compose tool

SvgToCompose SVG path to Jetpack Compose tool This tool can take the SVG path, and export it as a Jetpack Compose material icon path method calls. Exa

A simple authentication application using Jetpack compose to illustrate signin and sign up using Mvvm, Kotlin and jetpack compose
A simple authentication application using Jetpack compose to illustrate signin and sign up using Mvvm, Kotlin and jetpack compose

Authentication A simple authentication application using Jetpack compose to illustrate signin and sign up using Mvvm, Kotlin and jetpack compose Scree

An Android application consuming the GitHub API to search for users on Github, display their followers, following and repositories. The project is built with Compose, MVVM pattern as well as other architectural components and libraries.
ComposeTextBug - Issue with MotionLayout+Compose in Text functionality

ComposeTextBug Issue with MotionLayout+Compose in Text functionality Demo: devic

ComposeChips - A gmail like chip edit text for compose ui

ComposeChips A gmail like chip edit text for compose ui Installation implementat

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration
⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

πŸ’» create-compose-app A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configur

⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration
⌨️ A tool that gives you a massive head start when building Compose Desktop apps. It saves you from time-consuming setup and configuration

πŸ’» create-compose-app A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configur

Jetpack Compose Boids | Flocking Insect 🐜. bird or Fish simulation using Jetpack Compose Desktop πŸš€, using Canvas API 🎨
Jetpack Compose Boids | Flocking Insect 🐜. bird or Fish simulation using Jetpack Compose Desktop πŸš€, using Canvas API 🎨

🐜 🐜 🐜 Compose flocking Ants(boids) 🐜 🐜 🐜 Jetpack compose Boids | Flocking Insect. bird or Fish simulation using Jetpack Compose Desktop πŸš€ , usi

A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!
A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Why Not Compose! A collection of animations, compositions, UIs using Jetpack Compose. You can say Jetpack Compose cookbook or play-ground if you want!

Owner
Takahiro Menju
Google Developers Expert for Android CyberAgent.Inc, AbemaTv.Inc @abema
Takahiro Menju
Jetpack Compose Text composable to show html text from resources

HtmlText Current Compose Version: 1.0.3 Compose HtmlText Text composable to show html text from resources Add to your project Add actual HtmlText libr

Alexander Karkossa 57 Dec 23, 2022
Expandable text, similar to Text() in Jetpack Compose

A small library to display expandable texts in Jetpack Compose.

null 3 Sep 8, 2022
πŸ‚ Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, and Fresco.

Landscapist ?? Jetpack Compose image loading library which can fetch and display network images using Glide, Coil, Fresco Usecase You can see the use

Jaewoong Eum 1.4k Jan 1, 2023
A 7 and 14 segment display for Android built with Jetpack Compose

SegmentedDisplay A 7-segment and 14-segment display for Android build with Jetpack Compose Customizable Highly customisable. Hook up to a data stream

Rab Ross 5 May 23, 2022
ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image while the real image is loaded from the internet. Use blurhash and coil to ensure good performance.

compose-image-blurhash ComposeImageBlurhash is a Jetpack Compose component with the necessary implementation to display a blurred image while the real

Orlando Novas Rodriguez 24 Nov 18, 2022
Burak AkgΓΌn 84 Oct 30, 2022
Compose-table is a funny compose project to display multiple rows and columns.

Readme Compose-table is a funny compose project to display multiple rows and columns. You can scroll in any direction ( vertically and horizontally) S

Jack Chen 3 Nov 30, 2022
Drawing text around other content in Jetpack Compose

TextAroundContent Drawing text around other content in Jetpack Compose Installat

Dmitry Mysenko 8 Feb 9, 2022
A Jetpack Compose component used for displaying Markdown-formatted text.

MarkdownText A library for displaying Markdown contents within Jetpack Compose. Uses Coil Current limitations Lists that are annotated with the * must

Arnau Mora 4 Dec 15, 2022
πŸ˜‡Translation tool based on Jetpack Compose

?? Screenshots   License Copyright 2020 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not u

Ruger 7 May 16, 2022