SpecialButton.premade3 constructor
SpecialButton.premade3(- {required String label,
- required Widget icon,
- required void onPressed(
),
- bool shrinkWrap = true}
)
Implementation
factory SpecialButton.premade3(
{required String label,
required Widget icon,
required void Function() onPressed,
bool shrinkWrap = true}) =>
SpecialButton(
beginAlign: Alignment.topLeft,
endAlign: Alignment.bottomRight,
antiBeginAlign: Alignment.topRight,
antiEndAlign: Alignment.bottomLeft,
shrinkwrap: shrinkWrap,
label: Text(label,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Color(0xFFFFFFFF))),
icon: icon,
shadow: const Color.fromARGB(166, 238, 40, 185),
antiShadow: const Color.fromARGB(189, 29, 240, 131),
antiColors: const <Color>[
Color.fromARGB(255, 75, 216, 53),
Color.fromARGB(255, 54, 206, 130)
],
onPressed: onPressed,
colors: const <Color>[
Color.fromARGB(255, 216, 53, 178),
Color.fromARGB(255, 206, 54, 110)
]);