#egui #ui #virtual-list #list

egui_virtual_list

A virtual list widget for egui, with support for variable height items

7 releases (breaking)

0.7.0 Feb 7, 2025
0.6.0 Dec 19, 2024
0.5.0 Oct 3, 2024
0.4.0 Jul 3, 2024
0.1.0 Jan 21, 2024

#496 in GUI

Download history 131/week @ 2024-12-11 169/week @ 2024-12-18 34/week @ 2024-12-25 69/week @ 2025-01-01 68/week @ 2025-01-08 44/week @ 2025-01-15 57/week @ 2025-01-22 152/week @ 2025-01-29 450/week @ 2025-02-05 212/week @ 2025-02-12 134/week @ 2025-02-19 137/week @ 2025-02-26 221/week @ 2025-03-05 104/week @ 2025-03-12 7/week @ 2025-03-19 16/week @ 2025-03-26

375 downloads per month
Used in 4 crates

MIT license

31KB
264 lines

egui_virtual_list

egui_ver Latest version Documentation unsafe forbidden License

This crate adds a virtual list widget to egui. Egui has a basic build in virtual list in the ScrollArea widget. This crate has some extra features though:

  • Supports items with varying heights
    • Heights are calculated lazily and cached, as you scroll further down the list
  • Supports custom layouts, so you could place multiple items in a single row
  • Allows for adding items at the top without the scroll position changing

There are some limitations though:

  • If you want to support a crazy amounts of items (1000000+ items), where you can instantly jump anywhere in the list, I recommend using egui's built in ScrollArea instead.
  • Horizontal scrolling is not supported yet, but it should be easy to add if needed.

If you want to build a infinite scroll list, I recommend using the egui_infinite_scroll crate instead, which is using this crate internally.

Dependencies

~4.5–9.5MB
~92K SLoC