CupertinoDateTextBox constructor

CupertinoDateTextBox({
  1. required DateTime initialValue,
  2. required Function onDateChange,
  3. required String hintText,
  4. Color color = CupertinoColors.label,
  5. Color hintColor = CupertinoColors.inactiveGray,
  6. Color pickerBackgroundColor = CupertinoColors.systemBackground,
  7. double fontSize = 17.0,
  8. double textfieldPadding = 15.0,
  9. bool enabled = true,
})

A text box widget which displays a cupertino picker to select a date if clicked

Implementation

CupertinoDateTextBox(
    {required this.initialValue,
    required this.onDateChange,
    required this.hintText,
    this.color = CupertinoColors.label,
    this.hintColor = CupertinoColors.inactiveGray,
    this.pickerBackgroundColor = CupertinoColors.systemBackground,
    this.fontSize = 17.0,
    this.textfieldPadding = 15.0,
    this.enabled = true});