#file-tree #iced #widgets #toolkit #message #enums #path-buf

iced_file_tree

A lightweight file tree widget for the iced toolkit

5 unstable releases

new 0.3.1 Mar 1, 2025
0.3.0 Jan 31, 2025
0.2.3 Jan 29, 2025
0.1.5 Dec 14, 2024
0.1.1 Nov 22, 2024

#593 in GUI

Download history 235/week @ 2024-11-21 13/week @ 2024-11-28 350/week @ 2024-12-12 21/week @ 2024-12-19 156/week @ 2025-01-02 298/week @ 2025-01-09 50/week @ 2025-01-16 93/week @ 2025-01-23 233/week @ 2025-01-30 40/week @ 2025-02-06 26/week @ 2025-02-13

371 downloads per month

MIT license

31KB
599 lines

Iced File Tree

Crates.io Documentation Iced License

A lightweight file tree widget for the iced toolkit.

Usage

Include iced_file_tree as a dependency in your Cargo.toml:

[dependencies]
iced = "0.13.1"
iced_file_tree = "0.3.1"

Example

use iced::widget::scrollable;
use iced_file_tree::file_tree;

enum Message {
    FileTreeMessage(PathBuf),
    // ...
}

fn view(state: &State) -> Element<'_, Message> {
    let path: PathBuf = // ...

    scrollable(
        file_tree(path)
            .on_double_click(Message::FileTreeMessage),
    )
    .into()
}

The FileTree widget is recommended to be put in an iced Scrollable.

Dependencies

~39–75MB
~1.5M SLoC