Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airstrike/architect
Sample iced app with tabs and an async loading of users when you navigate to the Users tab
https://github.com/airstrike/architect
iced
Last synced: 18 days ago
JSON representation
Sample iced app with tabs and an async loading of users when you navigate to the Users tab
- Host: GitHub
- URL: https://github.com/airstrike/architect
- Owner: airstrike
- Created: 2024-10-02T15:44:41.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-19T14:17:51.000Z (about 1 month ago)
- Last Synced: 2024-12-19T15:28:38.827Z (about 1 month ago)
- Topics: iced
- Language: Rust
- Homepage:
- Size: 358 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Architect (Iced Example)
[![Made with iced](https://iced.rs/badge.svg)](https://github.com/iced-rs/iced)
This project demonstrates a simple example of an application using the `iced`
crate to build a UI with two screens: a "Top" screen and a "Users" screen.It also includes basic navigation between the screens and simulates asynchronous
loading of user data only when the users tab is first selected.## Features
- **Screen Navigation**: Switch between two screens: "Top" and "Users".
- **Asynchronous Task**: Simulates loading user data asynchronously using `tokio`.
- **Theming**: Custom styling for active/inactive tabs (Top/Users).## Project Structure
- `App`: The main application struct that manages the current screen and loaded users.
- `Screen`: Enum to represent the active screen (`Top`, `Users`).
- `Users`: Enum representing the state of users (`Loading` or `Loaded` with a `Vec`).## Running the App
1. Clone the repository.
2. Run `cargo run` to build and launch the application.