Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar_style TextFormatter dayTextFormatter more details #893

Open
Quardah opened this issue Sep 5, 2024 · 0 comments
Open

Calendar_style TextFormatter dayTextFormatter more details #893

Quardah opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Quardah
Copy link

Quardah commented Sep 5, 2024

In the code for calendar_style.dart we see the following statement to try setting up dayTextFormatter:

/// Use to customize the text within each day cell.
/// Defaults to '${date.day}', to show just the day number.
///
/// Example usage:
/// dart /// dayTextFormatter: (date, locale) => DateFormat.d(locale).format(date), ///
final TextFormatter? dayTextFormatter;

I am unable to get it to work, i would like to ask for more details. I am new to this.

What i am trying to do is have the date displayed on the top left corner of the cell and have the center of the cell displaying a letter chosen by the user. I do have the intl package imported

import 'package:intl/intl.dart';

Thank you.

@Quardah Quardah added the enhancement New feature or request label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant