handler error print
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user