table_calendar icon indicating copy to clipboard operation
table_calendar copied to clipboard

iOS increased font size causes days of week to be clipped

Open litaoz opened this issue 2 years ago • 2 comments

Describe the bug Increased font size in iOS causes the days of weeks header to have the bottom parts cut off.

To reproduce Please include a short code sample that can be used to reproduce the problem.

Code sample for Calendar widget usage
final kToday = DateTime.now();

TableCalendar(
    focusedDay: kToday,
    firstDay: DateTime(kToday.year, kToday.month, 1),
    lastDay: DateTime(kToday.year, kToday.month + 1, 1).add(const Duration(days: -1)),
 )

Steps to reproduce the behavior:

  1. In iOS simulator (I used iPhone 14 Pro Max), Setting > Accessibility > Display & Text Size > Larger Text, increase text size
  2. Open app with Calendar widget

Expected behavior The header row with the days of the week should increase in height, not cut off the text.

Screenshots “”

litaoz avatar Jun 18 '23 01:06 litaoz

Ah that's what was happening! I was wondering why my emulator was different from my phone! +1

NemoTheHero avatar Jul 20 '23 04:07 NemoTheHero

This is also happening in our Android apps, when increasing the font size via the Android settings. +1

PisaIlogs avatar Oct 03 '23 09:10 PisaIlogs

+1

leagonzalez avatar Mar 18 '24 17:03 leagonzalez

Duplicate of #713. Check out https://github.com/aleksanderwozniak/table_calendar/issues/713#issuecomment-1180699391 for a workaround

aleksanderwozniak avatar Mar 24 '24 13:03 aleksanderwozniak