| Crates.io | iced_file_tree |
| lib.rs | iced_file_tree |
| version | 0.3.1 |
| created_at | 2024-11-22 15:38:00.179687+00 |
| updated_at | 2025-03-01 23:30:17.925679+00 |
| description | A lightweight file tree widget for the iced toolkit. |
| homepage | |
| repository | https://github.com/edwloef/iced_file_tree |
| max_upload_size | |
| id | 1457476 |
| size | 119,040 |
A lightweight file tree widget for the iced toolkit.
Include iced_file_tree as a dependency in your Cargo.toml:
[dependencies]
iced = "0.13.1"
iced_file_tree = "0.3.1"
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.