anypay 0.0.1-dev.1 copy "anypay: ^0.0.1-dev.1" to clipboard
anypay: ^0.0.1-dev.1 copied to clipboard

AnyPay is a lightweight Flutter package for displaying customizable payment UI with animated result screens

<<<<<<< HEAD

anypay #

AnyPay is a lightweight Flutter package for displaying customizable payment UI with animated result screens for success, failure, and pending states. Fully themable and easy to integrate into any Flutter app. #

AnyPay Flutter Package #

A lightweight Flutter package for displaying customizable payment UI.
Allows developers to integrate payment flows with attractive result animations for success, failure, and pending states.


Features #

  • Checkout screen with amount and title.
  • Result screen with animated icons:
    • Bounce for success/failure.
    • Rotation for pending.
  • Fully customizable PaymentTheme:
    • Colors: primary, success, failure
    • Text style, border radius
    • Icon size & animation speed
  • Example project included for quick testing.
  • Lightweight: No external dependencies.

Installation #

Add this to your pubspec.yaml:

dependencies:
  anypay: latest_version


import 'package:anypay/anypay.dart';

// Launch payment UI
PaymentUI.open(
  context: context,
  amount: 499,
  title: "Order Payment",
  startPayment: () async {
    // Simulate payment process
    await Future.delayed(Duration(seconds: 2));
    return const PaymentResult(
      status: PaymentStatus.success,
      message: "Payment successful!",
    );
  },
  theme: const PaymentTheme(
    primary: Colors.orange,
    success: Colors.greenAccent,
    failure: Colors.redAccent,
    iconSize: 120,
    animationDuration: Duration(milliseconds: 1000),
    textStyle: TextStyle(fontSize: 18),
    borderRadius: 12,
  ),
);
>>>>>>> 6bb5239 (Update README.md with latest info)
2
likes
0
points
471
downloads

Publisher

unverified uploader

Weekly Downloads

AnyPay is a lightweight Flutter package for displaying customizable payment UI with animated result screens

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flutter

More

Packages that depend on anypay