SignInButton constructor
const
SignInButton(
- Buttons button, {
- Key? key,
- required Function onPressed,
- bool mini = false,
- EdgeInsets padding = EdgeInsets.zero,
- ShapeBorder? shape,
- String? text,
- double elevation = 2.0,
- Clip clipBehavior = Clip.none,
- TextStyle? textStyle,
The constructor is fairly self-explanatory.
Implementation
const SignInButton(
this.button, {
Key? key,
required this.onPressed,
this.mini = false,
this.padding = EdgeInsets.zero,
this.shape,
this.text,
this.elevation = 2.0,
this.clipBehavior = Clip.none,
this.textStyle,
}) : assert(
mini != true ||
!(button == Buttons.google ||
button == Buttons.googleDark ||
button == Buttons.facebookNew),
'Google and FacebookNew buttons do not support mini mode',
),
super(key: key);