Skip to content

Instantly share code, notes, and snippets.

@aneury1
Created November 6, 2019 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aneury1/08e1830636ec4756e766d9a6675ec730 to your computer and use it in GitHub Desktop.
Save aneury1/08e1830636ec4756e766d9a6675ec730 to your computer and use it in GitHub Desktop.
class _AppState extends State<AppState> {
builder(){
Future<String> futureString = new QRCodeReader()
.setAutoFocusIntervalInMs(200) // default 5000
.setForceAutoFocus(true) // default false
.setTorchEnabled(true) // default false
.setHandlePermissions(true) // default true
.setExecuteAfterPermissionGranted(true) // default true
.scan();
futureString.then((val){
setState(() {
code = val;
});
});
}
String code ="Text";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment