Created
November 6, 2019 14:16
-
-
Save aneury1/08e1830636ec4756e766d9a6675ec730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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