Reputation: 43
import 'package:qrscan/qrscan.dart' as qrscanner;
RaisedButton(
elevation: 4,
child: Text('Scan QR'),
color: Colors.amberAccent,
shape: StadiumBorder(),
onPressed: () async {
scanResult = await qrscanner.scan();
// scanResult = 'hai';
setState(() {});
}),
Upvotes: 1
Views: 200
Reputation: 41
I'm having similar trouble with you today. I'm using realme C2 and I try to give permission to the app manually. here my step:
open
I hope it can help.
Upvotes: 0