pos_sdk 7.0.0 copy "pos_sdk: ^7.0.0" to clipboard
pos_sdk: ^7.0.0 copied to clipboard

PlatformAndroid
unlisted

The implementation of the pos_sdk, specific for v1.1.14 poslink reservation.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pos_sdk/littlefish_pay_pos_sdk.dart';
import 'pages/terminal_actions_page.dart';
import 'pages/transaction_actions_page.dart';

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

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

  @override
  Widget build(BuildContext context) {
    final posPlugin = LittlefishPayPosSdk();
    return MaterialApp(
      home: TpsTestHome(tpsPlugin: posPlugin),
    );
  }
}

class TpsTestHome extends StatelessWidget {
  final LittlefishPayPosSdk tpsPlugin;
  const TpsTestHome({super.key, required this.tpsPlugin});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('PosLinkV2 Test Application'),
      ),
      body: Padding(
        padding: const EdgeInsets.all(16.0),
        child: ListView(
          children: [
            const SizedBox(height: 24),
            ListTile(
              title: const Text('Transaction Testing'),
              leading: const Icon(Icons.payment),
              trailing: const Icon(Icons.arrow_forward_ios),
              onTap: () {
                Navigator.of(context).push(
                  MaterialPageRoute(
                    builder: (context) =>
                        TransactionActionsPage(posPlugin: tpsPlugin),
                  ),
                );
              },
            ),
            const Divider(),
            ListTile(
              title: const Text('Terminal Tests'),
              leading: const Icon(Icons.settings),
              trailing: const Icon(Icons.arrow_forward_ios),
              onTap: () {
                Navigator.of(context).push(
                  MaterialPageRoute(
                    builder: (context) =>
                        TerminalActionsPage(posPlugin: tpsPlugin),
                  ),
                );
              },
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
140
points
50
downloads

Documentation

API reference

Publisher

verified publisherlittlefishapp.com

Weekly Downloads

The implementation of the pos_sdk, specific for v1.1.14 poslink reservation.

Homepage

License

unknown (license)

Dependencies

dartz, flutter, littlefish_interfaces, plugin_platform_interface

More

Packages that depend on pos_sdk

Packages that implement pos_sdk