handler error print

This commit is contained in:
Efril
2026-04-27 12:53:55 +07:00
parent d790262fd4
commit 699ca4cfb7
2 changed files with 29 additions and 12 deletions
@@ -12,11 +12,17 @@ class PrinterBluetoothDialog extends StatefulWidget {
class _PrinterBluetoothDialogState extends State<PrinterBluetoothDialog> {
@override
void initState() {
loadPermissionBluetooth();
context.read<BluetoothLoaderBloc>().add(
const BluetoothLoaderEvent.fetched(),
);
super.initState();
_initBluetooth();
}
Future<void> _initBluetooth() async {
await loadPermissionBluetooth();
if (mounted) {
context.read<BluetoothLoaderBloc>().add(
const BluetoothLoaderEvent.fetched(),
);
}
}
@override