prefValue method

  1. @override
Widget prefValue()
override

Implementation

@override
Widget prefValue() {
  DateTime date = DateTime.now();
  try {
    date = DateTime.parse(pref.value.toString());
  } catch (e) {}
  return Text(
    _formatDate(date, pref.format ?? Pref.FORMAT_DATE_DMY),
    style: TextStyle(
      fontFamily: "Roboto",
      fontSize: 18.0,
      color: pref.enabled ? null : Colors.grey,
    ),
  );
}