FunctionButton constructor
const
FunctionButton(
- String title,
- int index, {
- TextStyle checkedTextStyle = const TextStyle(color: Colors.lightBlue, fontSize: 20),
- TextStyle unCheckTextStyle = const TextStyle(color: Colors.black, fontSize: 20),
- BoxDecoration checkedBoxDecoration = const BoxDecoration(color: Colors.deepPurple, borderRadius: BorderRadius.all(Radius.circular(10))),
- BoxDecoration unCheckedBoxDecoration = const BoxDecoration(color: Colors.grey, borderRadius: BorderRadius.all(Radius.circular(10))),
- double width = 20,
- double height = 20,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- EdgeInsetsGeometry margin = const EdgeInsets.all(0),
- AlignmentGeometry alignment = Alignment.center,
- Color highlightColor = Colors.transparent,
- Color hoverColor = Colors.transparent,
- Color? focusColor,
- Color? splashColor,
- double? radius,
- Key? key,
Implementation
const FunctionButton(
this.title,
this.index, {
this.checkedTextStyle =
const TextStyle(color: Colors.lightBlue, fontSize: 20),
this.unCheckTextStyle = const TextStyle(color: Colors.black, fontSize: 20),
this.checkedBoxDecoration = const BoxDecoration(
color: Colors.deepPurple,
borderRadius: BorderRadius.all(Radius.circular(10))),
this.unCheckedBoxDecoration = const BoxDecoration(
color: Colors.grey,
borderRadius: BorderRadius.all(Radius.circular(10))),
this.width = 20,
this.height = 20,
this.padding = const EdgeInsets.all(0),
this.margin = const EdgeInsets.all(0),
this.alignment = Alignment.center,
this.highlightColor = Colors.transparent,
this.hoverColor = Colors.transparent,
this.focusColor,
this.splashColor,
this.radius,
Key? key,
}) : super(key: key);