Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter FlatButton is deprecated #309

Closed
saoudsalih opened this issue Jun 22, 2022 · 2 comments
Closed

Flutter FlatButton is deprecated #309

saoudsalih opened this issue Jun 22, 2022 · 2 comments

Comments

@saoudsalih
Copy link

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'.

  • '_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(
    ^^^^^^^^^^
@matthewrice345
Copy link
Contributor

I'm running into the same issue. Check out the flutter channel master and the FlatButton has been removed now.

@matthewrice345
Copy link
Contributor

PR: #310

@hyochan hyochan closed this as completed Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants