flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

intl ^0.19.0

Open cgzcgb opened this issue 3 months ago • 2 comments

Is there an existing issue for this?

The question

Resolving dependencies... Because flutter_quill >=9.2.4 depends on intl ^0.18.1 and nnbq depends on intl ^0.19.0, flutter_quill >=9.2.4 is forbidden. So, because nnbq depends on flutter_quill ^9.3.6, version solving failed.

cgzcgb avatar Apr 10 '24 08:04 cgzcgb

As an update in case it is useful, Im building for web and attempted to override the intl in pubspec.yml

`dependency_overrides: intl: ^0.19.0

`

While that appears to work it then throws errors for flutter-colorpicker

`../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:659:53: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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 'bodyText1'. Theme.of(context).textTheme.bodyText1, ^^^^^^^^^ ../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:669:53: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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'. Theme.of(context).textTheme.bodyText2, ^^^^^^^^^ ../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:951:55: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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 'bodyText1'. Theme.of(context).textTheme.bodyText1, ^^^^^^^^^ ../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:960:57: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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'. Theme.of(context).textTheme.bodyText2, ^^^^^^^^^ ../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1042:58: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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 'bodyText1'. Text('Hex', style: Theme.of(context).textTheme.bodyText1), ^^^^^^^^^ ../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1045:47: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../flutter_sdk/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'. width: (Theme.of(context).textTheme.bodyText2?.fontSize ?? 14) * 10, ^^^^^^^^^`

It seems that the flutter-colorPicker hasn't been updated in a couple of years.

[✓] Flutter (Channel beta, 3.22.0-0.1.pre, on macOS 13.5 22G74 darwin-arm64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.2) [✓] VS Code (version 1.86.0) [✓] Connected device (5 available) [✓] Network resources

update: If you manually alter bodyText1 and bodyText2 to bodyLarge and bodyMedium in the two linked files in the errors the build compiles.

Strain-solutions avatar Apr 10 '24 16:04 Strain-solutions

@Strain-solutions You can workaround that by overriding flutter_colorpicker as well. The master branch has fixes for the deprecation of those fields.

dependency_overrides:
  flutter_colorpicker:
    git:
      url: https://github.com/mchome/flutter_colorpicker
      ref: master
  intl: ^0.19.0

quicktime avatar May 14 '24 22:05 quicktime