anchor.diff:              final b64Image = base64Encode(fileData);
               final otpauth = await qrScanner.scanQr(b64Image);
               final data = CredentialData.fromUri(Uri.parse(otpauth));
  -            setState(() {
  -              _issuerController.text = data.issuer ?? '';
  -              _accountController.text = data.name;
  -              _secretController.text = data.secret;
  -              _oathType = data.oathType;
  -              _hashAlgorithm = data.hashAlgorithm;
  -              _periodController.text = '${data.period}';
  -              _digits = data.digits;
  -              _qrState = _QrScanState.success;
  -            });
  +            _loadCredentialData(data);
             }
           },
           child: Column(
  
positive.code:                       value: _digits,
                        isDense: true,
                        underline: null,
                        items: [6, 7, 8]
                            .map((e) => DropdownMenuItem(
                                  value: e,
                                  child: Text('$e digits'),
  
negative.code:                             defaultPeriod,
                          isDense: true,
                          underline: null,
                          items: _periodValues
                              .map((e) => DropdownMenuItem(
                                    value: e,
                                    child: Text('$e sec'),
  