From 96298c83ba910afad4f57e629f5d4136808b9ebc Mon Sep 17 00:00:00 2001 From: Stepan Bezhuk Date: Sun, 31 Oct 2021 22:29:53 +0200 Subject: [PATCH] fix: fixed padding in shape --- lib/src/qr_code_scanner.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/src/qr_code_scanner.dart b/lib/src/qr_code_scanner.dart index 238529c..86ec5a5 100644 --- a/lib/src/qr_code_scanner.dart +++ b/lib/src/qr_code_scanner.dart @@ -101,10 +101,12 @@ class _QRViewState extends State { return Stack( children: [ _getPlatformQrView(), - Container( + Padding( padding: widget.overlayMargin, - decoration: ShapeDecoration( - shape: widget.overlay!, + child: Container( + decoration: ShapeDecoration( + shape: widget.overlay!, + ), ), ) ],