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

Version 2.0.1 failing with Flutter 3.24 #68

Open
1 of 7 tasks
borgoat opened this issue Aug 25, 2024 · 2 comments
Open
1 of 7 tasks

Version 2.0.1 failing with Flutter 3.24 #68

borgoat opened this issue Aug 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@borgoat
Copy link

borgoat commented Aug 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

2.0.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

Flutter doctor

Flutter doctor
flutter doctor -v
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64, locale en-CH)
    • Flutter version 3.24.0 on channel stable at /opt/homebrew/Caskroom/flutter/3.13.9/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (4 weeks ago), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/borgoat/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/borgoat/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/borgoat/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.2.0.2)
    • IntelliJ at /Users/borgoat/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 81.1.3
    • Dart plugin version 242.20629

[✓] VS Code (version 1.92.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available)
    • 🤙 (mobile)                     • 00008110-000E0D9C1132401E • ios            • iOS 17.6.1 21G93
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.6.1 23G93 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.6.1 23G93 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 128.0.6613.84

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Minimal code example

Code sample

pubspec.yaml

dependencies:
  flutter_form_builder: ^9.1.1
  form_builder_phone_field: ^2.0.1

pubspec.lock

packages:
  form_builder_phone_field:
    dependency: "direct main"
    description:
      name: form_builder_phone_field
      sha256: b959f560ad94f4ecbc48830d5485b187aa02d87a02a97cdb874bc6ddd87d0dcb
      url: "https://pub.dev"
    source: hosted
    version: "2.0.1"

Current Behavior

I'm getting an error when building:

Could not build the precompiled application for the device.
Error (Xcode): ../../../../.pub-cache/hosted/pub.dev/country_pickers-2.0.0/lib/utils/my_alert_dialog.dart:107:46: Error: The getter 'headline6' isn't defined for the class 'TextTheme'.

Expected Behavior

I can build by overriding the dependency to point to branch main of this repo:

pubspec.yaml

dependency_overrides:
  form_builder_phone_field:
    git:
      url: https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field.git
      ref: main

Steps To Reproduce

  1. Use Flutter 3.24
  2. Add dependency to form_builder_phone_field: 2.0.1
  3. Build

Aditional information

I wonder if there's something wrong with tags and actual releases on pub.dev:

@borgoat borgoat added the bug Something isn't working label Aug 25, 2024
@deandreamatias
Copy link
Contributor

I try to work on a new version but before that, need to replace the phone_numbers package. Can take a look on this branch https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/tree/replace-phone-numbers-dependency

@Meryldominguez
Copy link

Having a similar issue. is there a timeline, or a plan, for this getting fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants