Skip to content
Closed
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
6 changes: 4 additions & 2 deletions lib/google_wallet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ class GoogleWalletButton extends StatelessWidget {
final double height;
final VoidCallback? onPressed;
final Locale? locale;
final EdgeInsets padding;

const GoogleWalletButton({
Key? key,
this.style = GoogleWalletButtonStyle.primary,
this.height = _minHeight,
this.onPressed,
this.locale,
this.padding = EdgeInsets.all(8),
}) : super(key: key);

String _assetPath(context) {
Expand All @@ -81,7 +83,7 @@ class GoogleWalletButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return RawMaterialButton(
padding: EdgeInsets.all(8),
padding: padding,
onPressed: onPressed,
child: SvgPicture.asset(
_assetPath(context),
Expand All @@ -91,4 +93,4 @@ class GoogleWalletButton extends StatelessWidget {
),
);
}
}
}