ezylite 1.1.2
ezylite: ^1.1.2 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.1.2
Then run:
flutter pub get
Quick start #
import 'package:ezylite/ezylite.dart';
final result = await EzyLitePlugin.open(
context,
config: EzyLiteConfig.malaysia(
licenseKey: 'LIC-DEV-001',
deviceId: 'stable-device-uuid',
merchantId: 1,
outletId: 1,
trolleyNo: 'Trolley-01',
),
);
if (result != null) {
print('POS closed: ${result.status.name}');
}
Configuration #
| Field | Description |
|---|---|
licenseKey |
Outlet license key from CMS |
deviceId |
Stable local device UUID (Android / iOS) |
merchantId |
Merchant id used for token refresh |
outletId |
Outlet id used for token refresh |
trolleyNo |
Friendly device id used on activate / token refresh (optional) |
Malaysia preset #
EzyLiteConfig.malaysia(
licenseKey: 'LIC-DEV-001',
deviceId: '550e8400-e29b-41d4-a716-446655440000',
merchantId: 1,
outletId: 1,
trolleyNo: 'Trolley-01',
)
Saudi preset #
EzyLiteConfig.saudi(
licenseKey: 'LIC-DEV-001',
deviceId: '550e8400-e29b-41d4-a716-446655440000',
merchantId: 1,
outletId: 1,
trolleyNo: 'Trolley-01',
)
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.