anchor.diff:            " You can view your results by logging in to MyUCSDChart.");
       }
     }
  -
  -  Future<void> _handleBarcodeResult(BarcodeResult result) async {
  -    this.setState(() {
  -      hasScanned = true;
  -      _barcode = result?.data;
  -      isLoading = true;
  -    });
  -
  -    try {
  -      var accessTokenExpiration =
  -          _userDataProvider?.authenticationModel?.expiration;
  -      var nowTime = (DateTime.now().millisecondsSinceEpoch / 1000).round();
  -      var timeDiff = accessTokenExpiration - nowTime;
  -      var tokenExpired = timeDiff <= 0 ? true : false;
  -      var isLoggedIn =
  -          Provider.of<UserDataProvider>(context, listen: false).isLoggedIn;
  -      var validToken = false;
  -
  -      if (isLoggedIn) {
  -        if (tokenExpired) {
  -          if (await _userDataProvider.silentLogin()) {
  -            validToken = true;
  -          }
  -        } else {
  -          validToken = true;
  -        }
  -
  -        if (validToken) {
  -          var results = await _barcodeService.uploadResults({
  -            "Content-Type": "application/json",
  -            'Authorization':
  -                'Bearer ${_userDataProvider?.authenticationModel?.accessToken}'
  -          }, {
  -            'barcode': _barcode
  -          });
  -
  -          if (results) {
  -            this.setState(() {
  -              successfulSubmission = true;
  -              didError = false;
  -              isLoading = false;
  -            });
  -          } else {
  -            this.setState(() {
  -              successfulSubmission = false;
  -              didError = true;
  -              isLoading = false;
  -            });
  -
  -            if (_barcodeService.error
  -                .contains(ErrorConstants.duplicateRecord)) {
  -              this.setState(() {
  -                _errorText = ScannerConstants.duplicateRecord;
  -                isDuplicate = true;
  -              });
  -            } else if (_barcodeService.error
  -                .contains(ErrorConstants.invalidMedia)) {
  -              this.setState(() {
  -                _errorText = ScannerConstants.invalidMedia;
  -                isValidBarcode = false;
  -              });
  -            } else {
  -              this.setState(() {
  -                _errorText = ScannerConstants.barcodeError;
  -              });
  -            }
  -          }
  -        } else {
  -          this.setState(() {
  -            successfulSubmission = false;
  -            didError = true;
  -            isLoading = false;
  -            _errorText = ScannerConstants.invalidToken;
  -          });
  -        }
  -      } else {
  -        this.setState(() {
  -          successfulSubmission = false;
  -          didError = true;
  -          isLoading = false;
  -          _errorText = ScannerConstants.loggedOut;
  -        });
  -      }
  -    } catch (e) {
  -      this.setState(() {
  -        successfulSubmission = false;
  -        didError = true;
  -        isLoading = false;
  -        _errorText = ScannerConstants.unknownError;
  -      });
  -    }
  -  }
   }
  
positive.code: import 'package:campus_mobile_experimental/app_constants.dart';
  import 'package:campus_mobile_experimental/app_styles.dart';
  import 'package:campus_mobile_experimental/core/providers/user.dart';
  import 'package:campus_mobile_experimental/core/services/barcode.dart';
  import 'package:campus_mobile_experimental/core/utils/webview.dart';
  
negative.code:                   border: Border.all(color: Colors.white),
                  )),
            ),
            Center(child: Text(_scannerDataProvider.message)),
          ],
        ));
      } else {
  