Skip to main content

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​

AreaAccessPurpose
UserAzeooSDK.userNot exposed as separate class; user state is tied to connect. Use AzeooSDK.disconnect() for logout.
NutritionAzeooSDK.nutritionshowMainScreen, showNutritionPlans, showRecipe, showBarcodeScanner, showCart, etc.
TrainingAzeooSDK.trainingshowMainScreen, showWorkoutPlans, showExercises, showProgress, showSchedule, etc.
ThemeAzeooSDK.changePrimaryColor, setCustomThemes, getCurrentThemeModeTheme helpers.
ConfigAzeooSDK.configCurrent 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();

Next steps​