anchor.diff:        });
         if (_barcodeService.error.contains(ErrorConstants.invalidBearerToken)) {
           await _userDataProvider.refreshToken();
  -      } else if(_barcodeService.error.contains(ErrorConstants.duplicateRecord)){
  +      } else if (_barcodeService.error
  +          .contains(ErrorConstants.duplicateRecord)) {
           this.setState(() {
  -          _errorText = "Submission failed due to barcode already scanned. Please scan another barcode.";
  +          _errorText =
  +              "Submission failed due to barcode already scanned. Please scan another barcode.";
           });
         }
         //_submitted = true;
       }
  -
  -
     }
   
     openLink(String url) async {
  
positive.code: 
  import 'package:campus_mobile_experimental/core/constants/app_constants.dart';
  import 'package:campus_mobile_experimental/core/data_providers/user_data_provider.dart';
  import 'package:campus_mobile_experimental/core/services/barcode_service.dart';
  
negative.code:   }
  
    Widget renderScanner() {
      return (Stack(
        children: [
          Scandit(
              scanned: _handleBarcodeResult,
              onError: (e) => setState(() => _message = e.message),
              symbologies: [Symbology.CODE128, Symbology.DATA_MATRIX],
              onScanditCreated: (controller) => _controller = controller,
              licenseKey: licenseKey),
          Center(
            child: Container(
                width: 300,
                height: 200,
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(40),
                  border: Border.all(color: Colors.white),
                )),
          ),
          Center(child: Text(_message)),
        ],
      ));
    }
  
    Widget renderSubmissionView() {
      if (isLoading) {
        return (Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: <Widget>[
            Center(
              child: SizedBox(
                  height: 40, width: 40, child: CircularProgressIndicator()),
            ),
            Padding(
              padding: const EdgeInsets.only(top: 20.0),
              child: Text("Submitting...please wait",
                  style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),
            ),
          ],
        ));
      } else if (successfulSubmission) {
        return (renderSuccessScreen(context));
      } else if (didError) {
        return (renderFailureScreen(context));
      } else {
        return (renderFailureScreen(context));
      }
    }
  
  