|
|
@ -24,7 +24,7 @@ class _QrCodeScanPage extends State<QrCodeScanPage> { |
|
|
|
void initState() { |
|
|
|
void initState() { |
|
|
|
super.initState(); |
|
|
|
super.initState(); |
|
|
|
|
|
|
|
|
|
|
|
readerHeight = MediaQuery.of(context).size.height; |
|
|
|
readerHeight = 812; |
|
|
|
Future.delayed(Duration(seconds: 1), () { |
|
|
|
Future.delayed(Duration(seconds: 1), () { |
|
|
|
buildReaderView(); |
|
|
|
buildReaderView(); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -40,9 +40,11 @@ class _QrCodeScanPage extends State<QrCodeScanPage> { |
|
|
|
child: qrReaderView != null |
|
|
|
child: qrReaderView != null |
|
|
|
? Column( |
|
|
|
? Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Expanded(child: qrReaderView, flex: readerHeight.toInt(),), |
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: qrReaderView, |
|
|
|
|
|
|
|
flex: readerHeight.toInt(), |
|
|
|
|
|
|
|
), |
|
|
|
// Expanded(child: qrReaderView, flex: readerHeight,), |
|
|
|
// Expanded(child: qrReaderView, flex: readerHeight,), |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
) |
|
|
|
) |
|
|
|
: Container( |
|
|
|
: Container( |
|
|
|