SDK API Overview (Flutter)
After AzeooSDK.initialize and AzeooSDK.connect, you use AzeooSDK (core state/theme/user) and AzeooSDKModules (nutrition screens).
Entry point​
- AzeooSDK.initialize(apiKey, options) — Initialize once with API key and optional AzeooSDKInitOptions (locale, theme, deepLinks, safeArea, analyticsEnabled, offlineSupport).
- AzeooSDK.connect(userToken, gender, height, weight) — 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 | AzeooSDKModules.nutrition | showMainScreen, showNutritionPlans, showRecipe, showBarcodeScanner, showCart, etc. |
| Theme | AzeooSDK.changePrimaryColor, setCustomThemes, getCurrentThemeMode | Theme helpers. |
| Config | AzeooSDK.config | Current UI config (after connect). |
Quick example​
import 'package:azeoo_sdk/azeoo_sdk.dart';
await AzeooSDK.initialize(apiKey, options: AzeooSDKInitOptions(locale: 'en'));
await AzeooSDK.connect(
token: userToken,
gender: userGender,
height: Height(userHeightCm),
weight: Weight(userWeightKg),
);
AzeooSDKModules.nutrition.showMainScreen();
await AzeooSDK.getCurrentThemeMode();
await AzeooSDK.disconnect();