title: Flutter qr_code_scanner camera doesn't open when i click a textfield inside of dialog
body: <p>I using qr_code_scanner for scan a qr code &amp; barcodes. Its scanning perfectly. But when i want to use dialog after scan for ask how much product did you scan and after that check it and control it.But when i use textfield inside of dialog and when i tap textfield camera stops working and its stays in black screen. What should i do ? What is wrong ? My codes for scan :</p>
  <pre><code>void _onQRViewCreated(QRViewController controller) {
        this.controller = controller; 
        controller.scannedDataStream.listen((scanData) { 
          controller.pauseCamera();
          player.play(&quot;scanner_sound.mp3&quot;);
          inspect(args);
          if (args.Barcode == scanData.code) {
            showDialog(
                context: context,
                builder: (context) {
                  return WillPopScope(
                    onWillPop: () async {
                      Navigator.pop(context);
                      controller.resumeCamera();
                      return true;
                    },
                    child: AlertDialog(
                      title: const Text('Ürün Giriş'),
                      content: Column(
                        children: [
                          const Text('Bu üründen kaç adet okutuldu ?'),
                          TextField(
                            keyboardType: TextInputType.number,
                            controller: _controller,
                          ),
                        ],
                      ),
                      actions: &lt;Widget&gt;[
                        TextButton(
                            onPressed: () { 
                              bool isTrue = checkScannedCount(int.parse(_controller.text));
                              if (isTrue) {
                                var model = args.copyWith(ScannedCount: args.Count);
                                context.read&lt;ProductCubit&gt;().updateProduct(model);
                                Navigator.pop(context);
                                Navigator.pop(context);
                              } else {
                                ScaffoldMessenger.of(context).showSnackBar(
                                  const SnackBar(
                                    content: Text(&quot;Lütfen sayımı tekrarlayınız.&quot;),
                                  ),
                                );
  
                                Navigator.pop(context);
                                controller.resumeCamera(); //Its not starting camera again.
                              }
                            },
                            child: const Text('Tamam')),
                      ],
                    ),
                  );
                });
          } else {
            showDialog(
                context: context,
                builder: (context) {
                  return WillPopScope(
                    onWillPop: () async {
                      Navigator.pop(context);
                      controller.resumeCamera();
                      return true;
                    },
                    child: AlertDialog(
                      title: const Text('Hatalı Barkod veya Ürün'),
                      content: const Text('Yanlış ürünü veya barkodu okutuyor olabilirsiniz. Kontrol edip tekrar ediniz.'),
                      actions: &lt;Widget&gt;[
                        TextButton(
                            onPressed: () {
                              Navigator.pop(context);
                              controller.resumeCamera();
                            },
                            child: const Text('Tamam')),
                      ],
                    ),
                  );
                });
          }
        });
      }
  </code></pre>