promptpay_qrcode_generate 1.0.2 copy "promptpay_qrcode_generate: ^1.0.2" to clipboard
promptpay_qrcode_generate: ^1.0.2 copied to clipboard

Promptpay QR Code Generate An easy way to generate Prompt-pay QR Code from prompt-pay id

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'PromptPayQRCodeGenerate Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'PromptPayQRCodeGenerate Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey.shade200,
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: QRCodeGenerate(
          promptPayId: "YourPromptPay",
          amount: 1234.56,
          width: 400,
          height: 400,
        ),
      ),
    );
  }
}
5
likes
140
pub points
70%
popularity

Publisher

unverified uploader

Promptpay QR Code Generate An easy way to generate Prompt-pay QR Code from prompt-pay id

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, qr_flutter

More

Packages that depend on promptpay_qrcode_generate