2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 13:36:50 +00:00

Fix barcode widget to prevent flutter widget error

This commit is contained in:
Oliver Walters 2021-02-25 17:38:41 +11:00
parent 90df4c6135
commit feaafe068d

View File

@ -436,19 +436,22 @@ class _QRViewState extends State<InvenTreeQRView> {
return Scaffold( return Scaffold(
body: Stack( body: Stack(
children: <Widget>[ children: <Widget>[
Expanded( Column(
flex: 4, children: [
child: QRView( Expanded(
key: qrKey, child: QRView(
onQRViewCreated: _onViewCreated, key: qrKey,
overlay: QrScannerOverlayShape( onQRViewCreated: _onViewCreated,
borderColor: Colors.red, overlay: QrScannerOverlayShape(
borderRadius: 10, borderColor: Colors.red,
borderLength: 30, borderRadius: 10,
borderWidth: 10, borderLength: 30,
cutOutSize: 300, borderWidth: 10,
), cutOutSize: 300,
),
)
) )
]
), ),
Center( Center(
child: Column( child: Column(