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 'package:epocpdv/src/core/extensions/strings_extension.dart'; | |
import 'package:epocpdv/src/core/helpers/utils.dart'; | |
import 'package:isar/isar.dart'; | |
part 'ativacao_model.g.dart'; | |
@Name('ativacao') | |
@Collection() |
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
// ignore_for_file: public_member_api_docs, sort_constructors_first | |
import 'dart:convert'; | |
import 'package:epocpdv/src/data/model/cargas/funcionario_model.dart'; | |
import 'package:isar/isar.dart'; | |
part 'user_model.g.dart'; | |
class UserModel { | |
final int id; |
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 cart = [{ | |
name: 'Pizza de calebreza', | |
amount: 10, | |
qty: 2, | |
addons: [{ | |
'name': 'Extra calabreza', | |
'amount': 1.5 | |
}, | |
{ | |
'name': 'Borda recheada', |
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:esc_pos_utils/esc_pos_utils.dart'; | |
import 'package:get/get.dart'; | |
import 'package:viapp_totem/app/core/printers/elgin_printer_device.dart'; | |
import 'package:viapp_totem/app/core/printers/physical_printer.dart'; | |
import 'package:viapp_totem/app/core/printers/network_printer.dart'; | |
import 'package:viapp_totem/app/core/printers/sunmi_printer.dart'; | |
class GeneralPrinterContorller extends GetxController { | |
PhysicalPrinter get physical => PhysicalPrinter.instance; | |
NetWorkPrint get network => NetWorkPrint.instance; |
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:get/get.dart'; | |
import 'package:getxdinamico/app/modules/home/components/navigation_bottom_page.dart'; | |
import 'package:getxdinamico/app/modules/home/components/navigation_drawer.dart'; | |
import 'package:getxdinamico/app/modules/home/components/navigation_rail_page.dart'; | |
import 'package:getxdinamico/app/modules/home/components/navigator_page.dart'; | |
import './home_controller.dart'; | |
class HomePage extends GetResponsiveView<HomeController> { |
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
abstract class LocalStorage { | |
Future<LocalStorage> init(); | |
T? getData<T>(String key); | |
Future<bool> setData<T>(String key, T value); | |
bool hasData(String key); | |
Future<bool> removeData(String key); | |
Future<bool> clearStorage(); | |
} |
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:artigo_sat/app/modules/configuracao/configuracao_bindings.dart'; | |
import 'package:artigo_sat/app/modules/configuracao/configuracao_page.dart'; | |
import 'package:get/get_navigation/src/routes/get_route.dart'; | |
class ConfiguracaoRoute { | |
ConfiguracaoRoute._(); | |
static final routes = [ | |
GetPage( | |
name: '/configuracao', |
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:get/get.dart'; | |
import './home_controller.dart'; | |
class HomePage extends GetView<HomeController> { | |
const HomePage({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { |
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:artigo_sat/app/modules/configuracao/configuracao_bindings.dart'; | |
import 'package:artigo_sat/app/modules/configuracao/configuracao_page.dart'; | |
import 'package:get/get_navigation/src/routes/get_route.dart'; | |
class ConfiguracaoRoute { | |
ConfiguracaoRoute._(); | |
static final routes = [ | |
GetPage( | |
name: '/configuracao', |