Expand description
Mobiler runtime — the developer-facing API.
Implement MobilerApp with your typed events, model, and view (built
from the builders). Mobiler wraps it in MobilerShell, a
Crux app speaking the fixed UI ABI (mobiler_ui); you never touch the wire
protocol. Device APIs are capabilities via Cx.
Structs§
- Cx
- Effects an app requests during
update, generic over the app event type so continuations stay fully typed. - Mobiler
Shell - Crux adapter: turns a
MobilerAppinto an app speaking the fixed ABI. - Plugin
Call - Plugin
Notify - Plugin
Response - Tab
- A bottom-navigation tab.
selectedmarks the active one; tapping sendson_select.
Enums§
- Action
- What the shell sends back to the core. Fixed across all apps.
- BoxAlign
- Button
Style - Card
Style - Effect
- Built-in capabilities the generic shell fulfils.
- Effect
Ffi - Icon
- A small, finite icon set (maps to Material icons in the shell).
- Image
Ratio - Image
Shape - Input
Value - A value produced by an input widget at runtime.
- Project
Color - Project-identity colors (distinct from semantic
Tone). Concrete RGB decided in the render layer. - Spacing
- Text
Style - Tone
- Semantic status color (distinct from brand/identity color).
- Widget
- The app-agnostic widget tree the shell renders. Fixed across all apps.
Traits§
- Mobiler
App - What a Mobiler app implements. Write typed domain events; Mobiler serializes them into opaque tokens behind the scenes.
Functions§
- badge
- button
- caption
- card
- card_
button - A tappable card carrying a typed press event.
- checkbox
- chip
- color_
dot - A small colored identity dot.
- column
- divider
- emphasis
- grid
- icon_
button - image
- row
- scaffold
- App shell: top bar + bottom-nav
tabs+ scrollablebody.dark_modeis theme-as-data (the shell themes the whole app from it). - scaffold_
back - Like
scaffold, but the top bar shows a back arrow firingback(e.g. for a detail screen pushed over a tab). - slider
- spacer
- stack
- Z-stack/overlay (the
Boxwidget). Withscrim, the first child is a darkened background and the rest render on top. - stepper
- styled
- subtitle
- switch
- tab
- A bottom-nav tab carrying a typed selection event.
- text
- text_
field - title