plugin_flutter_elgin 1.3.1 copy "plugin_flutter_elgin: ^1.3.1" to clipboard
plugin_flutter_elgin: ^1.3.1 copied to clipboard

PlatformAndroid

Plugin to use Android Elgin devices functionalities like printer. Other functionalities will be added

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:plugin_flutter_elgin_example/printer.dart';
import 'package:plugin_flutter_elgin_example/tef.dart';

void main() {
  runApp(const MyApp());
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Center(
        child: Column(
      mainAxisSize: MainAxisSize.max,
      children: [
        Padding(
          padding: const EdgeInsetsDirectional.fromSTEB(0, 0, 0, 50),
          child: Row(
            mainAxisSize: MainAxisSize.max,
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              ElevatedButton(
                  onPressed: () {
                    Navigator.of(context).push(
                        MaterialPageRoute(builder: (BuildContext context) {
                      return const PrinterPage();
                    }));
                  },
                  child: const Text('Impressora')),
              ElevatedButton(
                  onPressed: () {
                    Navigator.of(context).push(
                        MaterialPageRoute(builder: (BuildContext context) {
                      return const TefPage();
                    }));
                  },
                  child: const Text('Tef')),
            ],
          ),
        ),
      ],
    ));
  }
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: const HomePage(),
    ));
  }
}
4
likes
130
points
122
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin to use Android Elgin devices functionalities like printer. Other functionalities will be added

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on plugin_flutter_elgin

Packages that implement plugin_flutter_elgin