fuelmetrix_miniapp_v2
Embeds the fuelmetrix mini app inside a host Flutter app as a native
PlatformView (Jetpack Compose on Android, SwiftUI on iOS).
Usage
import 'package:fuelmetrix_miniapp_v2/fuelmetrix_miniapp_v2.dart';
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => FuelmetrixMiniAppV2(
phone: currentUserPhone, // your logged-in user's phone number
clientId: yourVendorClientId, // issued to you by fuelmetrix
clientSecret: yourVendorClientSecret,
merchantCustomerId: yourCustomerId, // your own id for this user in your loyalty program
),
),
);
merchantCustomerId is required: your own identifier for this user in your
loyalty program. The mini app uses it to redeem loyalty points against the
right merchant-side customer record.
Libraries
- fuelmetrix_miniapp_v2
- Embeds the fuelmetrix mini app inside a host Flutter app as a native PlatformView. No mini app source ever lives in the host.