Open MohdSaadi opened 1 month ago
Same issue I am facing. Multiple qr not working.
Same issue I am facing. Multiple qr not working.
I'm thinking of adding a button on each step instead of the qr code widget directly So each button will display a popup that will now contain the qr code widget So we can easily manage the life cycle of it What do you think?
I am using QR code in different pages but still same issues. Did you get any chance to resolve the issues?
Visibility detector + camera.dispose() each time not visible and then create a new controller if visible.
Hello , im building a flutter application and i want to scan 2 qr codes in a stepper widget in 2 steps first one is to check the qr code on the voucher and the second is to check the qr code on the vehicle this is an example of the desired app :
also when i took the screenshot the camera stopped i don't know why xD,
this is my widget tree :
Step( isActive: _currentStep >= 1, state: _currentStep >= 1 ? StepState.complete : StepState.disabled, title: Text("Scan Qr code of the Voucher"), content: SizedBox( height: MediaQuery.of(context).size.height * 0.5, child: Column( children: [ Expanded( flex: 5, child: MobileScanner( // fit: BoxFit.contain, controller: controller, onDetect: (capture) { _onDetectQRDriver(capture); }, ), ), ], ), ), ), Step( isActive: _currentStep >= 2, state: _currentStep >= 2 ? StepState.complete : StepState.disabled, title: Text("Scan Qr code of the Truck"), content: SizedBox( height: MediaQuery.of(context).size.height * 0.5, child: Column( children: [ Expanded( flex: 5, child: MobileScanner( controller: controller1, onDetect: (capture) { _onDetectQRTruck(capture); }, ), ), ], ), ), ),