-
Passos para imprimir utilizando uma impressora Bluetooth no Flutter
Adicionar dependências ao seu pubspec.yaml: dependencies: flutter: sdk: flutter blue_thermal_printer: ^1.1.0 Configurar permissões: No Android, você precisa adicionar permissões ao arquivo AndroidManifest.xml. <uses-permission android:name=”android.permission.BLUETOOTH”/><uses-permission android:name=”android.permission.BLUETOOTH_ADMIN”/><uses-permission android:name=”android.permission.BLUETOOTH_SCAN”/><uses-permission android:name=”android.permission.BLUETOOTH_CONNECT”/> Programa para interagir com a impressora: import ‘package:flutter/material.dart’;import ‘package:blue_thermal_printer/blue_thermal_printer.dart’; void main() {runApp(MyApp());} class MyApp extends StatefulWidget {@override_MyAppState createState() => _MyAppState();} class _MyAppState extends State {BlueThermalPrinter bluetooth = BlueThermalPrinter.instance;List…