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
crates/strato-widgets/src/prelude.rs
StratoSDK / crates / strato-widgets / src / prelude.rs
1//! Prelude module for StratoUI widgets
2//!
3//! This module re-exports the most commonly used types and traits from the widgets crate,
4//! allowing users to import everything they need with a single `use strato_widgets::prelude::*;`
5 
6// Animation
7pub use crate::animation::{AnimationController, Curve, Tween, Tweenable};
8pub use crate::control::{ControlRole, ControlSemantics, ControlState};
9 
10// Re-export core types that are commonly used with widgets
11pub use strato_core::prelude::*;
12pub use strato_macros::view;
13 
14// Widget trait and common types
15pub use crate::widget::{Widget, WidgetId, WidgetState};
16 
17// Layout widgets
18pub use crate::container::Container;
19pub use crate::grid::{Grid, GridUnit};
20pub use crate::layout::{Column, CrossAxisAlignment, Flex, MainAxisAlignment, Row, Stack};
21pub use crate::scroll_view::ScrollView;
22pub use crate::wrap::{Wrap, WrapAlignment, WrapCrossAlignment};
23 
24// Basic widgets
25pub use crate::button::{Button, ButtonStyle};
26pub use crate::input::TextInput;
27pub use crate::text::Text;
28 
29// Theme system
30pub use crate::theme::{ColorPalette, Theme, Typography};
31 
32// Common layout types from strato-core
33pub use strato_core::layout::EdgeInsets;
34