StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | use strato_widgets::{Widget, Container, Text}; |
| 2 | use crate::theme::AppTheme; |
| 3 | |
| 4 | pub struct SettingsView; |
| 5 | |
| 6 | impl 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 |