build method
Implementation
build(Brightness brightness) {
borderColor = _borderColor ??
(brightness == Brightness.dark ? Color(0xff1d1d1d) : Color(0xffDBE3E7));
textFieldColor =
_textFieldColor ?? (brightness == Brightness.dark ? Color(0xff3b3c3e) : white);
buttonWidth = _buttonWidth ?? double.infinity;
buttonHeight = _buttonHeight ?? 48;
logoHeight = _logoHeight ?? 120;
background = _background ??
(brightness == Brightness.dark
? BoxDecoration(
gradient: LinearGradient(
begin: Alignment.bottomLeft,
end: Alignment.topRight,
//stops: [0.4, 1.0],
colors: [
Color(0xff0f0f0f),
Color(0xff414346),
],
),
)
: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
stops: [0.4, 1.0],
colors: [
Color(0xffFFFFFF),
Color(0xffF1F0F0),
],
),
));
spreadRadius = _spreadRadius ?? (brightness == Brightness.dark ? 3 : 1.5);
blurRadius = _blurRadius ?? (brightness == Brightness.dark ? 6 : 3);
}