fayaalma_checkout 0.0.3 copy "fayaalma_checkout: ^0.0.3" to clipboard
fayaalma_checkout: ^0.0.3 copied to clipboard

Page checkout du plateforme de paiement Fayaalma de DAARATECH CONSULTING.

example/lib/main.dart

import 'package:fayaalma_checkout/fayaalma_checkout.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: SafeArea(
          child: FayaalmaCheckout(
            width: double.infinity,
            height: double.infinity,
            actifColor: Colors.green.shade600,
            inactifColor: Colors.amber,
            initCheckOutEntity: CheckOutEntity(
              appID: '', //
              orderID: '28430',
              amount: 40.0,
              payerFullName: 'Alioune Badara DIOUF',
              productsOrdered: [
                ProductEntity(
                  productName: "Sac En Cuire",
                  unitPrice: 20.0,
                  quantity: 1,
                ),
                ProductEntity(
                  productName: "Iphone 15 Pro",
                  unitPrice: 20.0,
                  quantity: 1,
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
115
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

Page checkout du plateforme de paiement Fayaalma de DAARATECH CONSULTING.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, flutter_easyloading, google_fonts, intl

More

Packages that depend on fayaalma_checkout