pos_printer_manager 0.0.5 copy "pos_printer_manager: ^0.0.5" to clipboard
pos_printer_manager: ^0.0.5 copied to clipboard

flutter package for print or list down both wireless and bluetooth esc printer devices.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pos_printer_manager/pos_printer_manager.dart';
import 'package:pos_printer_manager_example/home_screen.dart';

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

  /// ensure printer profile is loaded
  await CapabilityProfile.ensureProfileLoaded();
  print("ensured");
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(home: HomeScreen());
  }
}