Skip to main content

πŸ“¦ Module containers

When Flutter switches from Nutrition to Training (or the reverse), your native tab bar, rail, or drawer should switch too. A module container is the adapter that tells the SDK how to update your chrome.

Platform code & examples

Platform selector β†’ Navigation (module container section) and UI components (multi-tab / bottom nav).

When you need one​

SetupContainer?
Single embedded module onlyNo
Two native tabs (nutrition + training)Yes
navigate across modules from outside the SDKYes
Deep link to the other moduleYes

Without a container, Flutter navigation still works; only the native tab highlight may lag until the user taps manually.

Built-in coordinators​

PlatformTypes
AndroidAzeooBottomNavCoordinator, AzeooNavigationRailCoordinator, AzeooNavComponentCoordinator
iOS UIKitAzeooUITabBarCoordinator, AzeooUINavigationCoordinator
SwiftUIAzeooSwiftUITabCoordinator
React NativesetModuleContainer((module) => boolean)

Install once after connect via sdk.setModuleContainer(...).

Custom hosts implement AzeooModuleContainer / return true from the RN callback when the tab switch was handled.


See also​