Skip to main content

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​

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

Next steps​