../../../.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.2.0/lib/flutter_calendar_carousel.dart:483:16: Error: The method 'FlatButton' isn't defined for the class '_CalendarState'.
'_CalendarState' is from 'package:flutter_calendar_carousel/flutter_calendar_carousel.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.2.0/lib/flutter_calendar_carousel.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
child: FlatButton(
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.2.0/lib/src/calendar_header.dart:47:32: Error: The method 'FlatButton' isn't defined for the class 'CalendarHeader'.
'CalendarHeader' is from 'package:flutter_calendar_carousel/src/calendar_header.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.2.0/lib/src/calendar_header.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
Widget _headerTouchable() => FlatButton(
^^^^^^^^^^
flutter_calendar_carousel: ^2.2.0
../../../.pub-cache/hosted/pub.dartlang.org/flutter_calendar_carousel-2.2.0/lib/flutter_calendar_carousel.dart:483:16: Error: The method 'FlatButton' isn't defined for the class '_CalendarState'.