From 4329569a79f302803e3d589697ca3fa8d1afec55 Mon Sep 17 00:00:00 2001 From: Pedro Belfort Date: Mon, 31 Aug 2020 19:38:50 -0300 Subject: [PATCH] Put back padding property --- lib/src/qr_code_scanner.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/qr_code_scanner.dart b/lib/src/qr_code_scanner.dart index fad8126..8bedf5e 100644 --- a/lib/src/qr_code_scanner.dart +++ b/lib/src/qr_code_scanner.dart @@ -11,6 +11,7 @@ class QRView extends StatefulWidget { @required Key key, @required this.onQRViewCreated, this.overlay, + this.overlayMargin = EdgeInsets.zero, }) : assert(key != null), assert(onQRViewCreated != null), super(key: key); @@ -18,6 +19,7 @@ class QRView extends StatefulWidget { final QRViewCreatedCallback onQRViewCreated; final ShapeBorder overlay; + final EdgeInsetsGeometry overlayMargin; @override State createState() => _QRViewState(); @@ -31,6 +33,7 @@ class _QRViewState extends State { _getPlatformQrView(), if (widget.overlay != null) Container( + padding: widget.overlayMargin, decoration: ShapeDecoration( shape: widget.overlay, ),