diff --git a/README.md b/README.md index 450bd82..2425a82 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Depending on your data requirements you may want to tweak the QR code output. Th | `version` | int | `QrVersions.auto` or a value between 1 and 40. See http://www.qrcode.com/en/about/version.html for limitations and details. | | `errorCorrectionLevel` | int | A value defined on `QrErrorCorrectLevel`. e.g.: `QrErrorCorrectLevel.L`. | | `size` | double | The (square) size of the image. If not given, will auto size using shortest size constraint. | -| `padding` | EdgeInsets | Padding surrounding the QR code data. | +| `padding` | EdgeInsetsGeometry | Padding surrounding the QR code data. | | `backgroundColor` | Color | The background color (default is none). | | `eyeStyle` | QrEyeStyle | Configures the QR code eyes' (corners') shape and color. | | `dataModuleStyle` | QrDataModuleStyle | Configures the shape and the color of the dots. | diff --git a/lib/src/qr_image_view.dart b/lib/src/qr_image_view.dart index 357d6ca..292ae22 100644 --- a/lib/src/qr_image_view.dart +++ b/lib/src/qr_image_view.dart @@ -108,7 +108,7 @@ class QrImageView extends StatefulWidget { final int errorCorrectionLevel; /// The external padding between the edge of the widget and the content. - final EdgeInsets padding; + final EdgeInsetsGeometry padding; /// The intended size of the widget. final double? size; @@ -309,7 +309,7 @@ class _QrContentView extends StatelessWidget { final Color? backgroundColor; /// The padding that surrounds the child widget. - final EdgeInsets? padding; + final EdgeInsetsGeometry? padding; /// The child widget. final Widget child;