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, ),