Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lib/button_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SignInButtonBuilder extends StatelessWidget {
highlightColor;

/// onPressed should be specified as a required field to indicate the callback.
final Function onPressed;
final VoidCallback? onPressed;

/// padding is default to `EdgeInsets.all(3.0)`
final EdgeInsets? padding, innerPadding;
Expand Down Expand Up @@ -83,7 +83,7 @@ class SignInButtonBuilder extends StatelessWidget {
elevation: elevation,
padding: padding ?? const EdgeInsets.all(0),
color: backgroundColor,
onPressed: onPressed as void Function()?,
onPressed: onPressed,
splashColor: splashColor,
highlightColor: highlightColor,
child: _getButtonChild(context),
Expand Down
2 changes: 1 addition & 1 deletion lib/button_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class SignInButton extends StatelessWidget {
/// to build the signin button.

/// onPressed function should be passed in as a required field.
final Function onPressed;
final VoidCallback? onPressed;

/// button should be used from the enum class `Buttons`
final Buttons button;
Expand Down