StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | use anyhow::Result; |
| 2 | use root_view::RootView; |
| 3 | pub mod root_view; |
| 4 | |
| 5 | extern crate strato_ui; |
| 6 | use strato_ui::platform; |
| 7 | |
| 8 | fn main() -> Result<()> { |
| 9 | let app_builder = |
| 10 | platform::AppBuilder::new(platform::AppCallbacks::default(), Box::new(()), None); |
| 11 | let _ = app_builder.run(move |ctx| { |
| 12 | ctx.add_window(strato_ui::AddWindowOptions::default(), |_| RootView::new()); |
| 13 | }); |
| 14 | |
| 15 | Ok(()) |
| 16 | } |
| 17 |