Skip to main content

matheel_zatca 0.1.2 copy "matheel_zatca: ^0.1.2" to clipboard
matheel_zatca: ^0.1.2 copied to clipboard

Show Saudi ZATCA (Fatoora) e-invoices in Flutter: decode the Phase 2 TLV QR and render a bilingual invoice card with the QR and a PDF button.

example/lib/main.dart

// Example: show a ZATCA invoice that your server filed through Matheel (https://matheel.app).
import 'package:flutter/material.dart';
import 'package:matheel_zatca/matheel_zatca.dart';

void main() => runApp(const ExampleApp());

/// A one-screen app showing an invoice card for a QR your backend returned.
class ExampleApp extends StatelessWidget {
  /// Creates the example app.
  const ExampleApp({super.key});

  // In a real app this comes from your server's response after filing (never call Matheel from the app).
  static const qr =
      'ARPYtNix2YPYqSDYqtis2LHYqNipAg8zMDAwMDAwMDAwMDAwMDMDEzIwMjYtMTEtMTZUMTA6MDA6MDAEBjExNS4wMAUFMTUuMDA=';

  @override
  Widget build(BuildContext context) => MaterialApp(
        home: Scaffold(
          appBar: AppBar(title: const Text('ZATCA invoice')),
          body: const SingleChildScrollView(
            padding: EdgeInsets.all(16),
            child: ZatcaInvoiceCard(qr: qr),
          ),
        ),
      );
}
0
likes
150
points
103
downloads
screenshot

Documentation

Documentation
API reference

Publisher

verified publishermatheel.app

Weekly Downloads

Show Saudi ZATCA (Fatoora) e-invoices in Flutter: decode the Phase 2 TLV QR and render a bilingual invoice card with the QR and a PDF button.

Homepage
Repository (GitHub)
View/report issues

Topics

#zatca #e-invoicing #saudi-arabia #qr-code #invoice

License

MIT (license)

Dependencies

flutter, qr

More

Packages that depend on matheel_zatca