MyCover AI
Libraries and SDKs

Flutter

Just Plug and Play it with our Flutter SDK

Installation

  • Add package mca_flutter_sdk to your pubspec.yaml file
  • Run flutter pub get
  • Add required permission for the image pickers and camera
  • Add the required permission for the geolocation

Usage

import 'package:mca_flutter_sdk/mca_official_flutter_sdk.dart';

PurchaseStage typeOfTransaction = PurchaseStage.purchase;
String reference = 'BUY-BWBJMPABGFWKB';

final myCover = MyCoverAI(
    context: context,
    pk: '2aa4f6ec-0111-42f4-88f9-466c7ef41727',
    email: '[email protected]';,
    pid: [productId],
    paymentOption: PaymentOption.gateway,
    reference: 'BUY-SMRCECMNYKMHV',
    transactionType: TransactionType.purchase
);

Additional Information

Add the required permission for image picker on Android and iOS android manifest and info.plist respectively. The SDK depends on image picker.