upi_payment_qrcode_generator 1.1.2 copy "upi_payment_qrcode_generator: ^1.1.2" to clipboard
upi_payment_qrcode_generator: ^1.1.2 copied to clipboard

outdated

UPI Payment QRCode Generator for User to scan and pay the Payee specific amount or user specific amount.

example/lib/main.dart

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

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

/// Creates The UPI Payment QRCode
class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final upiDetails = UPIDetails(
      upiID: "UPI ID Here eg. 73641234@paytm",
      payeeName: "Payee Name Here",
      amount: 1,
      transactionNote: "Hello World");
  final upiDetailsWithoutAmount = UPIDetails(
      upiID: "UPI ID Here eg. 73641234@paytm",
      payeeName: "Payee Name Here",
      transactionNote: "Hello World");

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('UPI Payment QRCode Generator'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const Text("UPI Payment QRCode without Amount",
                  style: TextStyle(fontWeight: FontWeight.bold)),
              UPIPaymentQRCode(
                upiDetails: upiDetailsWithoutAmount,
                size: 200,
              ),
              Text(
                "Scan QR to Pay",
                style: TextStyle(color: Colors.grey[600], letterSpacing: 1.2),
              ),
              const SizedBox(
                height: 20,
              ),
              const Text("UPI Payment QRCode with Amount",
                  style: TextStyle(fontWeight: FontWeight.bold)),
              UPIPaymentQRCode(
                upiDetails: upiDetails,
                size: 200,
              ),
              Text(
                "Scan QR to Pay",
                style: TextStyle(color: Colors.grey[600], letterSpacing: 1.2),
              )
            ],
          ),
        ),
      ),
    );
  }
}
39
likes
0
pub points
90%
popularity

Publisher

unverified uploader

UPI Payment QRCode Generator for User to scan and pay the Payee specific amount or user specific amount.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

barcode, flutter, flutter_svg

More

Packages that depend on upi_payment_qrcode_generator