NumKeyBoard constructor

const NumKeyBoard({
  1. Key? key,
  2. Function? onConfirm,
  3. Function? onInput,
  4. String buttonText = "确认",
  5. Color buttonColor = Colors.green,
  6. required TextEditingController controller,
  7. Color backgroundColor = const Color(0xFFF8F8F8),
  8. Color keyColor = Colors.white,
  9. TextStyle keyTextStyle = const TextStyle(fontSize: 23, color: Colors.black87, fontWeight: FontWeight.bold),
  10. TextStyle confirmTextStyle = const TextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
  11. Icon deleteIcon = const Icon(Icons.backspace, size: 25, color: Colors.black87),
})

Implementation

const NumKeyBoard({
    super.key,
    this.onConfirm,
    this.onInput,
    this.buttonText = "确认",
    this.buttonColor = Colors.green,
    required this.controller,
    this.backgroundColor = const Color(0xFFF8F8F8),
    this.keyColor = Colors.white,
    this.keyTextStyle = const TextStyle(fontSize: 23, color: Colors.black87, fontWeight: FontWeight.bold),
    this.confirmTextStyle = const TextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
    this.deleteIcon = const Icon(Icons.backspace, size: 25, color: Colors.black87)
});