Seregon/StratoSDK

StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.

Rust/27.3 KB/No license
examples/modern_dashboard/src/views/settings.rs
1use strato_widgets::{Widget, Container, Text};
2use crate::theme::AppTheme;
3 
4pub struct SettingsView;
5 
6impl SettingsView {
7 pub fn build() -> Box<dyn Widget> {
8 let theme = AppTheme::dark();
9 Box::new(Container::new()
10 .child(Text::new("Settings").color(theme.text_primary).font_size(32.0))
11 )
12 }
13}
14