|
|
@@ -148,7 +148,7 @@ class _QRViewExampleState extends State<QRViewExample> { |
|
|
|
|
|
|
|
|
Widget _buildQrView(BuildContext context) { |
|
|
Widget _buildQrView(BuildContext context) { |
|
|
// For this example we check how width or tall the device is and change the scanArea and overlay accordingly. |
|
|
// For this example we check how width or tall the device is and change the scanArea and overlay accordingly. |
|
|
var scanArea = (MediaQuery.of(context).size.width < 500 || |
|
|
|
|
|
|
|
|
var scanArea = (MediaQuery.of(context).size.width < 400 || |
|
|
MediaQuery.of(context).size.height < 400) |
|
|
MediaQuery.of(context).size.height < 400) |
|
|
? 150.0 |
|
|
? 150.0 |
|
|
: 300.0; |
|
|
: 300.0; |
|
|
|