paysheet 2.0.0+3 copy "paysheet: ^2.0.0+3" to clipboard
paysheet: ^2.0.0+3 copied to clipboard

A lightweight, styling-only paysheet UI for Flutter.

example/lib/main.dart

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

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

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Paysheet Example',
      home: Scaffold(
        appBar: AppBar(title: Text('Paysheet Example')),
        body: Center(
          child: ElevatedButton(
            child: Text('Open Paysheet'),
            onPressed: () async {
              await Paysheet.instance.present(
                context,
                method: 'card',
                amount: '9.99',
                onPay: () async {
                  // Example: app builders should call their server or SDK here.
                  // This example simply waits for a short duration then returns.
                  await Future.delayed(Duration(seconds: 1));
                },
              );
            },
          ),
        ),
      ),
    );
  }
}
0
likes
160
points
86
downloads

Publisher

verified publisherthelearmondcorporation.com

Weekly Downloads

A lightweight, styling-only paysheet UI for Flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on paysheet