buildPrimaryDecoration method
Implementation
BoxDecoration buildPrimaryDecoration(bool focused) {
return BoxDecoration(
borderRadius: borderRadius,
border: Border.fromBorderSide(
!focused ? BorderSide.none : primaryBorder ?? BorderSide.none,
),
boxShadow: focused && glowFactor != 0 && glowColor != null
? [
BoxShadow(
offset: Offset(1, 1),
color: glowColor!,
spreadRadius: glowFactor!,
blurRadius: glowFactor! * 2.5,
),
BoxShadow(
offset: Offset(-1, -1),
color: glowColor!,
spreadRadius: glowFactor!,
blurRadius: glowFactor! * 2.5,
),
BoxShadow(
offset: Offset(-1, 1),
color: glowColor!,
spreadRadius: glowFactor!,
blurRadius: glowFactor! * 2.5,
),
BoxShadow(
offset: Offset(1, -1),
color: glowColor!,
spreadRadius: glowFactor!,
blurRadius: glowFactor! * 2.5,
),
]
: null,
);
}