table_calendar
table_calendar copied to clipboard
Name of weekdays is not entirely visible when system font size is set to "Large" or "Largest" on Android
Describe the bug Using default settings, the name of weekdays gets cropped off when the system font size is set to "Large" or "Largest" on Android:
As far as I know, many users use their phone this way.
To reproduce
On Android, go to Settings -> Display -> Font size and set the system font to Large or Largest:
Check the TableCalendar widget.
Expected behavior Expected the weekdays to remain fully visible.
Screenshots See above
Output of flutter doctor
Paste the result of this command here.
Additional context
I'm using Flutter 3 and Material 3 with table_calendar: ^3.0.6
.
The issues is still present when switching back to Material 2, albeit to a lesser extent.
Try using daysOfWeekHeight: 16 * MediaQuery.of(context).textScaleFactor
- this should fix the cropping.
Thank you, this works really well on all sizes.
My issue is solved, but to avoid such problems later on, could this be integrated into the package itself? I don't have much experience with how Flutter packages are supposed to handle text scaling, I'm just guessing it'd be better for everyone. Some devs may not even notice this issue, and end us shipping an app that doesn't scale well.