Theme and modules
After AzeooSDK.connect, use AzeooSDKModules.nutrition and the theme helpers on AzeooSDK.
Nutrition (AzeooSDKModules.nutrition)
- showMainScreen(bottomSafeArea) — Main nutrition screen
- showNutritionPlans(), showNutritionPlan(planId), showUserNutritionPlan()
- showRecipes(), showRecipe(recipeId, recipeName)
- showBarcodeScanner(), showMobileScanner()
- showNutritionSearch(), showCart()
- showAddSelection(), showAddFood(), showAddMeal()
- showPermissionTestScreen()
Theme helpers
- AzeooSDK.changePrimaryColor(color)
- AzeooSDK.setCustomThemes(...) — light/dark primary, secondary, background, tertiary, success, error, warning
- AzeooSDK.getCurrentThemeMode() — Returns current theme mode (e.g. string)
Embedding (AzeooSDKContent)
Use the AzeooSDKContent widget to embed the full SDK UI in your app (e.g. as a tab or full-screen). See UI Components.
Example
import 'package:flutter/material.dart';
import 'package:azeoo_sdk/azeoo_sdk.dart';
AzeooSDKModules.nutrition.showMainScreen(bottomSafeArea: true);
AzeooSDK.changePrimaryColor(Colors.blue);