NumKeyBoard constructor
const
NumKeyBoard({
- Key? key,
- Function? onConfirm,
- Function? onInput,
- String buttonText = "确认",
- Color buttonColor = Colors.green,
- required TextEditingController controller,
- Color backgroundColor = const Color(0xFFF8F8F8),
- Color keyColor = Colors.white,
- TextStyle keyTextStyle = const TextStyle(fontSize: 23, color: Colors.black87, fontWeight: FontWeight.bold),
- TextStyle confirmTextStyle = const TextStyle(fontSize: 20, color: Colors.white, fontWeight: FontWeight.bold),
- 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)
});