Skip to main content
Version: 1.1.0

πŸš€ Flutter Quick Start

Prerequisites​

Step 1: Add dependency​

Path dependency (monorepo / internal):

dependencies:
azeoo_sdk:
path: ../../
azeoo_core:
path: ../../plugins/core

Published package: use your internal registry version when available.

You can import from package:azeoo_core/azeoo_core.dart (core API) or package:azeoo_sdk/azeoo_sdk.dart (re-exports core + UI modules).

Step 2: Initialize​

import 'package:azeoo_sdk/azeoo_sdk.dart';

await AzeooSDK.initialize(
'YOUR_API_KEY',
options: AzeooSDKInitOptions(
locale: 'en',
analyticsEnabled: true,
offlineSupport: true,
safeArea: const SafeAreaConfig.none(),
deepLinks: const DeepLinkConfig(
scheme: 'nutrition',
host: 'nutrition.com',
),
theme: themeConfig,
),
);

Step 3: Connect​

Pass a User JWT created by your backend. See Creating the User JWT for the payload spec and backend code examples.

await AzeooSDK.connect(
token: userJwt, // JWT from YOUR backend β€” see link above
gender: user.gender,
height: Height.scalar(user.heightCm, HeightUnit.centimeters),
weight: Weight.scalar(user.weightKg, WeightUnit.kilograms),
);

// userId available: AzeooSDK.userId

Step 4: Show nutrition UI​

Option A β€” Embed full SDK surface​

import 'package:azeoo_sdk/core/app/azeoo_sdk_content.dart';

Scaffold(
body: AzeooSDKContent(bottomSafeArea: false),
)

Option B β€” Imperative navigation​

AzeooSDKModules.nutrition.showMainScreen();
AzeooSDKModules.training.showMainScreen();

See Flutter navigation for all module methods.

Step 5: Disconnect​

await AzeooSDK.disconnect();
// or AzeooSDK.resetSession();

Next steps​