ezylite 1.0.7
ezylite: ^1.0.7 copied to clipboard
Embeddable Flutter POS module for retail checkout — barcode scanning, cart, and payments in host apps.
ezyLite POS #
Embeddable Flutter POS module for retail checkout — barcode scanning, cart management, and payments. Drop it into any host app with one line.
Installation #
Add to pubspec.yaml:
dependencies:
ezylite: ^1.0.0
Then run:
flutter pub get
Quick start #
import 'package:ezylite/ezylite.dart';
final result = await EzyLitePlugin.open(
context,
config: EzyLiteConfig.malaysia(
baseUrl: 'https://api-staging-ops01.retailetics.com',
activationKey: 'YOUR_ACTIVATION_KEY',
partnerId: 'your-partner-id',
),
);
if (result != null) {
print('POS closed: ${result.status.name}');
}
Configuration #
| Field | Description |
|---|---|
baseUrl |
Retailetics API base URL for your environment |
activationKey |
Outlet activation key provided by Retailetics |
partnerId |
Partner / vendor identifier (sent as device header) |
employeePin |
Employee PIN (optional, has default) |
trolleyNo |
Trolley number (optional, has default) |
Malaysia preset #
EzyLiteConfig.malaysia(
baseUrl: 'https://api-staging-ops01.retailetics.com',
activationKey: '9894083066',
partnerId: 'partner-demo-001',
)
Saudi preset #
EzyLiteConfig.saudi(
baseUrl: 'https://your-saudi-api.example.com',
activationKey: 'YOUR_KEY',
partnerId: 'your-partner-id',
)
Platform support #
| Platform | Supported |
|---|---|
| Android | Yes |
| iOS | Yes |
Camera permission is required for barcode scanning. The host app should request camera access before opening POS if needed.
Example #
See the example/ folder for a minimal host app integration.
Documentation #
- API reference
- Changelog
Publisher #
Published by Retailetics.