rwbr / flutter_neat_and_clean_calendar

Simple and clean flutter calendar with ability to slide up/down to show weekly/monthly calendar. Forked from [flutter_clean_calender](https://pub.dev/packages/flutter_clean_calendar)
MIT License
104 stars 51 forks source link

Package uses undefined getters that have been removed in latest Flutter version 3.22 #75

Closed Joshua27 closed 3 months ago

Joshua27 commented 3 months ago

Hi, I can't compile my app using the calendar package after upgrading to Flutter 3.22 due to the use of undefined getters. For instance:

/home/****/.pub-cache/hosted/pub.dev/flutter_neat_and_clean_calendar-0.3.16+36/lib/flutter_neat_and_clean_calendar.dart:556:63: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
 - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/home/*****/*****/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
    final TextStyle? body1Style = Theme.of(context).textTheme.bodyText2;

See also the static analysis issues here: https://pub.dev/packages/flutter_neat_and_clean_calendar/score

These getters were deprecated an have been removed in Flutter 3.22.

Kind regards, Joshua

Joshua27 commented 3 months ago

See https://github.com/rwbr/flutter_neat_and_clean_calendar/pull/76

rwbr commented 3 months ago

I'll take care of it ASAP

Tameflame commented 3 months ago

Yup we're having this issue too. Had to downgrade flutter to fix. Really looking forward to a fix! Loving this package!

Joshua27 commented 3 months ago

Has been fixed in #76 and release v0.3.19+41