plugin_flutter_elgin_android 1.3.4 copy "plugin_flutter_elgin_android: ^1.3.4" to clipboard
plugin_flutter_elgin_android: ^1.3.4 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_android_example/printer.dart';
import 'package:plugin_flutter_elgin_android_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(),
    ));
  }
}
0
likes
115
points
158
downloads

Publisher

unverified uploader

Weekly Downloads

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on plugin_flutter_elgin_android

Packages that implement plugin_flutter_elgin_android