Flutter Examples
Examples use the current flow: AzeooSDK.initialize then AzeooSDK.connect, then AzeooSDKModules.nutrition or AzeooSDKContent.
Initialize and connect
import 'package:azeoo_sdk/sdk/azeoo_sdk.dart';
Future<void> initSDK(String token) async {
await AzeooSDK.initialize(
'your-sdk-api-key',
options: AzeooSDKInitOptions(
locale: 'en',
analyticsEnabled: true,
offlineSupport: true,
safeArea: const SafeAreaConfig.all(),
),
);
await AzeooSDK.connect(
token: userToken,
gender: 'male',
height: Height(178),
weight: Weight(75),
);
}
Embed SDK UI (AzeooSDKContent)
import 'package:azeoo_sdk/core/app/azeoo_sdk_content.dart';
// In your widget tree
AzeooSDKContent()
Open screens
import 'package:azeoo_sdk/sdk/azeoo_sdk.dart';
AzeooSDKModules.nutrition.showMainScreen(bottomSafeArea: true);
AzeooSDKModules.nutrition.showBarcodeScanner();
Full example app
See the example/flutter_example project for a complete app with auth, AzeooSDKContent, and theme customization.