SDK API (Flutter)
After AzeooSDK.initialize and AzeooSDK.connect, you use the static AzeooSDK class to access user, nutrition, training, and theme.
Entry point​
- AzeooSDK.initialize(apiKey, options) — Initialize once with API key and optional AzeooSDKInitOptions (locale, theme, deepLinks, safeArea, analyticsEnabled, offlineSupport).
- AzeooSDK.connect(userId, token) — Attach a user; required before using modules or user.
- AzeooSDK.disconnect() — Clear current user; SDK stays initialized.
- AzeooSDK.isInitialized / AzeooSDK.isConnected — Status.
API surface​
| Area | Access | Purpose |
|---|---|---|
| User | AzeooSDK.user | Not exposed as separate class; user state is tied to connect. Use AzeooSDK.disconnect() for logout. |
| Nutrition | AzeooSDK.nutrition | showMainScreen, showNutritionPlans, showRecipe, showBarcodeScanner, showCart, etc. |
| Training | AzeooSDK.training | showMainScreen, showWorkoutPlans, showExercises, showProgress, showSchedule, etc. |
| Theme | AzeooSDK.changePrimaryColor, setCustomThemes, getCurrentThemeMode | Theme helpers. |
| Config | AzeooSDK.config | Current UI config (after connect). |
Quick example​
await AzeooSDK.initialize(apiKey, options: AzeooSDKInitOptions(locale: 'en'));
await AzeooSDK.connect('user-123', token);
AzeooSDK.nutrition.showMainScreen();
AzeooSDK.training.showWorkoutPlans();
await AzeooSDK.getCurrentThemeMode();
await AzeooSDK.disconnect();