smartpos_flutter 0.0.1
smartpos_flutter: ^0.0.1 copied to clipboard
SmartPOS plugin for flutter
Elgin SmartPOS #
Plugin Elgin SmartPOS para flutter. O plugin ainda esta em desenvolvimento e pode conter erros.
Exemplo #
void initElgin() {
// (OPCIONAL) Caso deseje configurar o tema, configurar antes de chamar o init.
ElginPAY.configTema(
corFonte: Colors.black,
corFundoTela: Colors.white,
);
// Inicializa a biblioteca.
ElginPAY.init(
empresaAutomacao: "Empresa",
nomeAutomacao: "Empresa",
versaoAutomacao: "versaoAutomacao",
);
// (OPCIONAL) Definir manualmente os textos das dialogs.
// Nao e necessario definir todos os campos
ElginPAY.configurarTexto(
dialogText: DialogText.ERRO_IMPRESSAO,
title: "ERROR",
);
}
void administrativa() {
ElginPAY.transactionCall(operacao: Operacoes.ADMINISTRATIVA);
}
void imprimir() {
ElginPAY.imprimirStrings(<String>[
'Teste Impressao',
'Linha 2',
'Linha 3',
]);
}
Como Usar #
- Adicionar ao yaml dependencies do arquivo pubspec.yaml
smartpos_flutter:
git:
url: https://github.com/NishiyamaPedro/smartpos_flutter.git
ref: master
- Adicionar as bibliotecas no build.gradle dentro da pasta 'Android/app/', como descrito no manual de integracao da Elgin.