This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:epocpdv/src/core/exceptions/epoc_exception.dart'; | |
import 'package:epocpdv/src/data/repositories/praca/praca_repository.dart'; | |
import 'package:epocpdv/src/data/repositories/praca/praca_repository_impl.dart'; | |
import 'package:epocpdv/src/data/service/praca/praca_service.dart'; | |
import 'package:epocpdv/src/data/service/praca/praca_service_impl.dart'; | |
import 'package:epocpdv/src/features/mesa/cubit/mesa_cubit.dart'; | |
import 'package:epocpdv/src/features/mesa/mesa_controller.dart'; | |
import 'package:epocpdv/src/features/mesa/mesa_page.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:provider/provider.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import 'package:epocpdv/src/core/printers/i_printers.dart'; | |
import 'package:pos_package/components/printer.dart'; | |
class PosRedePrinter implements InterfacePrinters { | |
static PosRedePrinter? _instance; | |
final PrinterPosPackage _printer = PrinterPosPackage.i; | |
bool result = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"caixas":[{"caixa":{"cod_caixa":"9123","local":"poc88","ip":"192.168.4.88","usuario":"427","gerente":"226","nome_usuario":"MATEUS SOUZA","nome_gerente":"LEIA (maitre)","abertura":"2024-08-02 12:19:17","fechamento":"2024-08-03 01:53:13","fundo":"0.00","sangria":"0.00","vale":"0.00","descontoAcrescimo":[{"nome":"CORTESIA BANDA","cod":"1","valor_total":null},{"nome":"CORTESIA PROMOTER","cod":"5","valor_total":null},{"nome":"DESCONTO ALIFE","cod":"7","valor_total":null},{"nome":"CORTESIA SOCIOS","cod":"8","valor_total":null},{"nome":"CONSUMO EVENTO","cod":"10","valor_total":null},{"nome":"CORTESIA ANIVERSARIO","cod":"11","valor_total":null},{"nome":"CORTESIA CLIENTE","cod":"12","valor_total":null},{"nome":"QUEBRA","cod":"13","valor_total":null}],"pagamentos":[{"cod_tpag":"46","nome":"PIX","diff":"0.00","valor_fisico":"147.24","valor_sistema":"147.24"},{"cod_tpag":"47","nome":"MASTERCARD DEBITO_DEBITO","diff":"0.00","valor_fisico":"607.91","valor_sistema":"607.91"},{"cod_tpag":"48","nome":"MASTERCARD_CREDITO","di |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Supported card types | |
enum CreditCardType { | |
visa, | |
amex, | |
discover, | |
mastercard, | |
dinersclub, | |
jcb, | |
unionpay, | |
maestro, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jsonList = '[{"id":2,"product":"DIGEST VITZ","descriptionsProduct":"DIGEST VITZ","composition":"Colina, Cobre quelado, Magnésio quelado, Metionina, Vitamina B6, Zinco quelado, Resveratrol, Astaxantina.","indication":"Disfunções hepática, Disfunção gástrica. Dispepsia. Gastrite","usageMode":"8 a 12 gotas sublingual","category":"Detox","price":44,"priceDiscount":40,"percent":10,"um":"caixa","balance":28,"minimumBalance":0,"listImages":[{"id":2,"url":"uploads/product2.png"}]},{"id":4,"product":"PROTECT VITZ","descriptionsProduct":"PROTECT VITZ","composition":"Trans-Resveratrol, Àcido Hialurônico, Silício, Metil-sulfoilmetano, Vitamina A, Biotina, Vitamina C, L-Cisteína, Zinco.","indication":"Anti Age, Rejuvenecimento, Fortalecimento dos cabelos, unhas e pele.\r\nCansaço. Doenças degenerativas.\r\n","usageMode":"8 a 12 gotas sublingual","category":"Suplimento","price":55,"priceDiscount":50,"percent":10,"um":"caixa","balance":30,"minimumBalance":0,"listImages":[{"id":4,"url":"uploads/product4.png"}]}]'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jsonList = [ | |
{ | |
"cidade": "Paris", | |
"pais": "França", | |
"pontos_turisticos": [ | |
"Torre Eiffel", | |
"Museu do Louvre", | |
"Catedral de Notre-Dame", | |
"Arco do Triunfo" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flavors: | |
prod: | |
app: | |
name: "MEU APP" | |
android: | |
applicationId: "br.com.brasizza.marcus.meuapp" | |
ios: | |
bundleId: "br.com.brasizza.marcus.meuapp" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:provider/provider.dart'; | |
void main() { | |
const isCat = true; | |
runApp( | |
Provider<Animal>( | |
create: (context) { | |
debugPrint('create'); | |
return isCat ? Cat(name: 'Whiskers', meows: 'meow') : Dog(name: 'Fido', barks: 'woof'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:cinema_stub/app/core/socket/socket_base.dart'; | |
import 'package:cinema_stub/app/data/models/seat.dart'; | |
import 'package:cinema_stub/app/data/repositories/seats_repository.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
part 'cinema_state.dart'; | |
class CinemaCubit extends Cubit<CinemaState> { | |
final SeatsRepository _repository; | |
final SocketBase _socket; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'dart:developer'; | |
import 'dart:io'; | |
import 'package:cinema_stub/app/core/socket/socket_base.dart'; | |
class SocketCore implements SocketBase { | |
late final Socket socket; | |
Map<String, Function> channels = {}; |