Skip to content

Example app ​

The example/ directory in the repository is a full Flutter application — use it the same way you would study flutter/samples or template apps: read main.dart and omega_setup.dart first, then open each module.


What it demonstrates ​

AreaFiles to read
Bootstraplib/main.dart — OmegaRuntime.bootstrap, MaterialApp, navigatorKey, first-frame switchTo + navigation
Compositionlib/omega/omega_setup.dart — namespaces, agents, flows, routes, cold start, intent registrars
Semanticslib/omega/app_semantics.dart, app_runtime_ids.dart — AppEvent / AppIntent / flow & agent ids
Auth modulelib/auth/* — AuthFlow, AuthAgent, AuthBehavior, auth_page, AuthLoginIntent / handleTypedIntent, emitTyped / typedPayloadAs, contracts
Other moduleslib/orders/, lib/provider/, lib/home/ — multi-flow patterns, typed home route
DebugInspector overlay / launcher, optional OmegaInspectorServer, time-travel panel

Run it ​

bash
cd example
flutter run

Use debug mode to see inspector and time-travel UI.


Align your app ​

After omega init in your own project, diff your omega_setup.dart against the example’s file until lists (agents, flows, routes) and cold-start fields match your product shape.


Next ​