flutter_printer_manager 1.0.2 copy "flutter_printer_manager: ^1.0.2" to clipboard
flutter_printer_manager: ^1.0.2 copied to clipboard

PlatformAndroid

Flutter plugin for interacting with printers on different platforms with main target to esc pos devices

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter_esc_pos_utils/flutter_esc_pos_utils.dart';
import 'package:flutter_printer_manager_example/src/tcp_printer_tab.dart';
import 'package:flutter_printer_manager_example/src/usb_printer_tab.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: DefaultTabController(
        length: 2,
        child: Scaffold(
            appBar: AppBar(
              bottom: const TabBar(
                tabs: [
                  Tab(
                    text: "USB",
                  ),
                  Tab(text: "TCP"),
                ],
              ),
            ),
            body: const TabBarView(
              children: [UsbPrinterTab(), TCPPrinterTab()],
            )),
      ),
    );
  }
}
0
likes
130
points
113
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for interacting with printers on different platforms with main target to esc pos devices

Repository (GitHub)
View/report issues

Topics

#escpos #printer #usb

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_printer_manager_android, flutter_printer_manager_platform_interface, logger, network_info_plus, path_provider, plugin_platform_interface

More

Packages that depend on flutter_printer_manager