Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
4 changes: 2 additions & 2 deletions lib/src/qr_image_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down