material-foundation / flutter-packages

A collection of useful Material Design packages
https://pub.dev/publishers/material.io
Apache License 2.0
824 stars 144 forks source link

`google_fonts` `4.0.5` cannot build due to `http` `1.0.0` #405

Closed fisforfaheem closed 1 year ago

fisforfaheem commented 1 year ago

Package

google_fonts

Existing issue?

What happened?

Getting this error: Resolving dependencies... Because no versions of zego_uikit_prebuilt_call match >3.3.16 <4.0.0 and zego_uikit_prebuilt_call 3.3.16 depends on http ^0.13.4, zego_uikit_prebuilt_call ^3.3.16 requires http ^0.13.4. And because google_fonts >=4.0.5 depends on http ^1.0.0, zego_uikit_prebuilt_call ^3.3.16 is incompatible with google_fonts >=4.0.5. So, because f4zone_2022 depends on both google_fonts ^4.0.5 and zego_uikit_prebuilt_call ^3.3.16, version solving failed. exit code 1

Relevant log output

environment:
  sdk: ">=3.0.1 <4.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.5
  carousel_slider: ^4.2.1
  logger: ^1.3.0
  firebase_phone_auth_handler: ^1.0.8
  provider: ^6.0.5
  fluttertoast: ^8.2.2
  font_awesome_flutter: ^10.4.0
  permission_handler: ^10.2.0
  hive: ^2.2.3
  image_picker: ^0.8.7+5
  path_provider: ^2.0.15
  flutter_rating_bar: ^4.0.1
  pinput: ^2.2.31
  twilio_phone_verify: ^2.0.0
  firebase_core: ^2.13.0
  pin_code_fields: ^7.4.0
  firebase_messaging: ^14.6.1
  firebase_auth: ^4.6.1
  cloud_firestore: ^4.7.1
  flutter_local_notifications: ^14.1.0
  flutter_phone_direct_caller: ^2.1.1
  intl_phone_number_input: ^0.7.3+1
  flutter_animator: ^3.2.2
  overlay_support: ^2.1.0
  flutter_ringtone_player: ^3.2.0
  dio: ^5.1.2
  progressive_image: ^2.0.1
  stop_watch_timer: ^2.0.0
  flutter_chat_types: ^3.6.1
  meta: ^1.9.1
  mime: ^1.0.4
  open_filex: ^4.3.2
  flutter_firebase_chat_core: ^1.6.7
  firebase_storage: ^11.2.1
  flutter_chat_ui: ^1.6.8
  file_picker: ^5.2.9
  url_launcher: ^6.1.11
  easy_debounce: ^2.0.3
  flutter_share: ^2.0.0
  getwidget: ^3.1.1
  hive_flutter: 1.1.0
  cached_network_image: ^3.2.3
  pdf: ^3.10.3
  email_validator: ^2.1.17
  google_fonts: ^4.0.4
  flutter_animate: ^4.1.1+1
  intl: ^0.18.1
  dartx: ^1.1.0
  introduction_screen: ^3.1.8
  zego_uikit_prebuilt_call: ^3.3.16
  in_app_update: ^4.0.1
dev_dependencies:
  build_runner: ^2.4.4
  hive_generator: ^2.0.0

  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^2.0.1

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages
guidezpl commented 1 year ago

This is expected. For now, you can pin with google_fonts: 4.0.4 until packages have updated to http 1.0.0.

fisforfaheem commented 1 year ago

ok

[image: Mailtrack] https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& Sender notified by Mailtrack https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality11& 05/26/23, 11:54:22 PM

On Fri, May 26, 2023 at 9:51 PM Pierre-Louis @.***> wrote:

This is expected. For now, you can pin with google_fonts: 4.0.4 until packages have updated to http 1.0.0.

— Reply to this email directly, view it on GitHub https://github.com/material-foundation/flutter-packages/issues/405#issuecomment-1564662594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRXJSCKDRLYTAMIEEICXX3XIDNQZANCNFSM6AAAAAAYPA7PYQ . You are receiving this because you authored the thread.Message ID: @.***>