SpecialButton.premade5 constructor
SpecialButton.premade5(- {required String label,
- required Widget icon,
- required void onPressed(
),
- bool shrinkWrap = true}
)
Implementation
factory SpecialButton.premade5(
{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, 255, 94),
antiShadow: const Color.fromARGB(188, 205, 102, 102),
antiColors: const <Color>[
Color.fromARGB(255, 255, 0, 0),
Color.fromARGB(255, 255, 102, 102)
],
onPressed: onPressed,
colors: const <Color>[
Color.fromARGB(255, 0, 230, 107),
Color.fromARGB(255, 28, 186, 0)
]);