SpecialButton.premade6 constructor
SpecialButton.premade6(- {required String label,
- required Widget icon,
- required void onPressed(
),
- bool shrinkWrap = true}
)
Implementation
factory SpecialButton.premade6(
{required String label,
required Widget icon,
required void Function() onPressed,
bool shrinkWrap = true}) =>
SpecialButton(
beginAlign: Alignment.topRight,
endAlign: Alignment.bottomLeft,
antiBeginAlign: Alignment.topLeft,
antiEndAlign: Alignment.bottomRight,
shrinkwrap: shrinkWrap,
label: Text(label,
style: const TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: Color(0xFFFFFFFF))),
icon: icon,
shadow: const Color.fromARGB(166, 7, 7, 255),
antiShadow: const Color.fromARGB(187, 102, 205, 186),
antiColors: const <Color>[
Color.fromARGB(255, 0, 255, 162),
Color.fromARGB(255, 102, 255, 237)
],
onPressed: onPressed,
colors: const <Color>[
Color.fromARGB(255, 0, 0, 230),
Color.fromARGB(255, 0, 0, 186)
]);