elgin_sat 0.0.4 copy "elgin_sat: ^0.0.4" to clipboard
elgin_sat: ^0.0.4 copied to clipboard

Package para utilização dos SATs da Elgin/Bematech de um jeito fácil e descomplicado.

example/lib/main.dart

import 'package:asuka/asuka.dart' as asuka;
import 'package:asyncstate/class/async_class.dart';
import 'package:elgin_sat_example/app/core/local_storage/local_storage_impl.dart';
import 'package:elgin_sat_example/app/core/widgets/custom_loader.dart';
import 'package:elgin_sat_example/app/modules/home/controller/home_controller.dart';
import 'package:elgin_sat_example/app/modules/home/home_view.dart';
import 'package:flutter/material.dart';

void main() async {
  AsyncState.setLoaderPersonalized(
      defaultLoaderWidget: const CustomLoader(
    texto: 'Aguarde!',
  ));
  WidgetsFlutterBinding.ensureInitialized();
  final storage = LocalSharedPrefs.instance;
  await storage.init();
  runApp(MaterialApp(
    builder: asuka.builder,
    navigatorObservers: [
      asuka.asukaHeroController,
      AsyncState.observer //if u don`t add this Hero will not work
    ],
    home: HomeView(
      controller: HomeController.instance(
        storage: storage,
      ),
    ),
  ));
}
16
likes
150
pub points
0%
popularity

Publisher

verified publishermarcus.brasizza.com

Package para utilização dos SATs da Elgin/Bematech de um jeito fácil e descomplicado.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on elgin_sat