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

Release 2.0.3 for Flutter 3.22 #77

Closed
jpohhhh opened this issue May 17, 2024 · 3 comments
Closed

Release 2.0.3 for Flutter 3.22 #77

jpohhhh opened this issue May 17, 2024 · 3 comments

Comments

@jpohhhh
Copy link

jpohhhh commented May 17, 2024

Depending on flutter_loggy with Flutter 3.22 leads to build errors. TL;DR: deprecated TextTheme getters

It looks like these references are fixed at top of tree, and pushing an update to pub.dev for 2.0.3 would be sufficient to resolve the issue.

Error logs:
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00006021-000C19E20147401E, name:My Mac }
{ platform:macOS, arch:x86_64, id:00006021-000C19E20147401E, name:My Mac }
../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_item_widget.dart:86:52: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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 'headline6'.
    style: Theme.of(context).textTheme.headline6!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_item_widget.dart:95:52: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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 'subtitle1'.
    style: Theme.of(context).textTheme.subtitle1!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_item_widget.dart:125:48: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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'.
    style: Theme.of(context).textTheme.bodyText2!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_item_widget.dart:138:48: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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'.
    style: Theme.of(context).textTheme.bodyText2!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_widget.dart:88:54: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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'.
    style: Theme.of(context).textTheme.bodyText2!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_widget.dart:97:52: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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'.
    style: Theme.of(context).textTheme.bodyText2!.copyWith(
    ^^^^^^^^^
    ../../.pub-cache/hosted/pub.dev/flutter_loggy-2.0.2/lib/flutter_loggy/ui/widgets/loggy_stream_widget.dart:108:48: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../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'.
    style: Theme.of(context).textTheme.bodyText2!.copyWith(
    ^^^^^^^^^
    Target kernel_snapshot failed: Exception
@jpohhhh
Copy link
Author

jpohhhh commented May 17, 2024

n.b. replacing your flutter_loggy dependency with this works around the issue for now:

  flutter_loggy:
    git:
      url: https://github.com/infinum/floggy.git
      path: flutter_loggy 

@itsJoKr
Copy link
Contributor

itsJoKr commented May 23, 2024

@lukaknezic Can you release new version of flutter_loggy?

All of this is fixed by @zenled 3 months ago, but you guys only released the flutter_loggy_dio. You need to release flutter_loggy too on pub.dev.

@lukaknezic
Copy link
Contributor

New release 2.0.3 is now on pub.dev

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