FollyCell.date constructor

FollyCell.date(
  1. DateTime date, {
  2. EdgeInsets padding = EdgeInsets.zero,
  3. Alignment align = Alignment.center,
  4. Color color = Colors.transparent,
  5. TextAlign textAlign = TextAlign.center,
  6. TextStyle? style,
  7. String locale = 'pt_br',
  8. String pattern = 'dd/MM/yyyy',
  9. bool selectable = false,
  10. Key? key,
})

Implementation

FollyCell.date(
  DateTime date, {
  EdgeInsets padding = EdgeInsets.zero,
  Alignment align = Alignment.center,
  Color color = Colors.transparent,
  TextAlign textAlign = TextAlign.center,
  TextStyle? style,
  String locale = 'pt_br',
  String pattern = 'dd/MM/yyyy',
  bool selectable = false,
  Key? key,
}) : this._text(
        DateFormat(pattern, locale).format(date),
        padding: padding,
        align: align,
        color: color,
        textAlign: textAlign,
        style: style,
        selectable: selectable,
        key: key,
      );