Sfoglia il codice sorgente

Put back padding property

flutter-beta
Pedro Belfort 6 anni fa
parent
commit
4329569a79
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      lib/src/qr_code_scanner.dart

+ 3
- 0
lib/src/qr_code_scanner.dart Vedi File

@@ -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<StatefulWidget> createState() => _QRViewState();
@@ -31,6 +33,7 @@ class _QRViewState extends State<QRView> {
_getPlatformQrView(),
if (widget.overlay != null)
Container(
padding: widget.overlayMargin,
decoration: ShapeDecoration(
shape: widget.overlay,
),


Caricamento…
Annulla
Salva