FunctionButton constructor

const FunctionButton(
  1. String title,
  2. int index, {
  3. TextStyle checkedTextStyle = const TextStyle(color: Colors.lightBlue, fontSize: 20),
  4. TextStyle unCheckTextStyle = const TextStyle(color: Colors.black, fontSize: 20),
  5. BoxDecoration checkedBoxDecoration = const BoxDecoration(color: Colors.deepPurple, borderRadius: BorderRadius.all(Radius.circular(10))),
  6. BoxDecoration unCheckedBoxDecoration = const BoxDecoration(color: Colors.grey, borderRadius: BorderRadius.all(Radius.circular(10))),
  7. double width = 20,
  8. double height = 20,
  9. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  10. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  11. AlignmentGeometry alignment = Alignment.center,
  12. Color highlightColor = Colors.transparent,
  13. Color hoverColor = Colors.transparent,
  14. Color? focusColor,
  15. Color? splashColor,
  16. double? radius,
  17. 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);