khaime_flutter 0.1.0
khaime_flutter: ^0.1.0 copied to clipboard
Khaime Checkout SDK for Flutter. Accept payments globally with a single widget.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'src/screens/product_screen.dart';
void main() => runApp(const ExampleApp());
/// A miniature storefront showing how a merchant app uses the Khaime SDK.
///
/// The flow mirrors a real integration: browse, collect buyer details, ask
/// *your* backend for a payment token, then hand that token to
/// `KhaimeCheckout` and let it pick the gateway.
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
title: 'Khaime Store',
debugShowCheckedModeBanner: false,
theme: ThemeData(
useMaterial3: true,
colorSchemeSeed: const Color(0xFF0070F3),
brightness: Brightness.light,
),
darkTheme: ThemeData(
useMaterial3: true,
colorSchemeSeed: const Color(0xFF0070F3),
brightness: Brightness.dark,
),
home: const ProductScreen(),
);
}