どうも、ちょげ(@chogetarou)です。
TableCalendarの高さを変えるには、どうしたらいいのでしょうか?
方法

SizedBox(
height: 600,
child: TableCalendar(
shouldFillViewport: true,
firstDay: DateTime(DateTime.now().year - 2),
lastDay: DateTime(DateTime.now().year + 2),
focusedDay: DateTime.now(),
calendarStyle: CalendarStyle(),
)
)
TableCalendarの高さを変えるには、引数「shouldFillViewport」に「true」を指定します。
そして、「TableCalendar」の高さは、「SizedBox」を使って設定します。
コメント