searchfield icon indicating copy to clipboard operation
searchfield copied to clipboard

The getter 'maintainHintSize' isn't defined for the class 'SearchInputDecoration'.

Open aju-annaseem opened this issue 6 months ago • 8 comments

../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:92:11: Error: The super constructor has no corresponding named parameter. super.maintainHintSize, ^ ../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:103:11: Error: The super constructor has no corresponding named parameter. super.hint, ^ ../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:206:50: Error: The getter 'maintainHintSize' isn't defined for the class 'SearchInputDecoration'.

  • 'SearchInputDecoration' is from 'package:searchfield/src/input_decoration.dart' ('../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'maintainHintSize'. maintainHintSize: maintainHintSize ?? this.maintainHintSize, ^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:219:26: Error: The getter 'hint' isn't defined for the class 'SearchInputDecoration'.
  • 'SearchInputDecoration' is from 'package:searchfield/src/input_decoration.dart' ('../../../.pub-cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'hint'. hint: hint ?? this.hint, ^^^^ Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command '/Users/apple/Developer/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

aju-annaseem avatar May 30 '25 11:05 aju-annaseem

getting the same thing , in change log they mentioned of fixing it in 1.3.2 but still showing the same thing

Waiting for connection from debug service on Chrome... ../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:92:11: Error: The super constructor has no corresponding named parameter. super.maintainHintSize, ^ ../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:103:11: Error: The super constructor has no corresponding named parameter. super.hint, ^ ../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:206:50: Error: The getter 'maintainHintSize' isn't defined for the class 'SearchInputDecoration'.

  • 'SearchInputDecoration' is from 'package:searchfield/src/input_decoration.dart' ('../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'maintainHintSize'. maintainHintSize: maintainHintSize ?? this.maintainHintSize, ^^^^^^^^^^^^^^^^ ../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart:219:26: Error: The getter 'hint' isn't defined for the class 'SearchInputDecoration'.
  • 'SearchInputDecoration' is from 'package:searchfield/src/input_decoration.dart' ('../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.2/lib/src/input_decoration.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'hint'. hint: hint ?? this.hint, ^^^^ Failed to compile application.

mohammedek avatar Jun 04 '25 09:06 mohammedek

Hey @aju-annaseem, Thanks for filing the issue. What version of flutter are you using? You need to use latest stable version of flutter inorder to build with stable 1.3.2 or switch back to older version 1.3.1

mahesh@MacBook-Pro-81 example % flutter build apk
Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1040 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1572 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Running Gradle task 'assembleRelease'...                           80.5s
✓ Built build/app/outputs/flutter-apk/app-release.apk (20.7MB)
mahesh@MacBook-Pro-81 example % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
Could not load custom device from config index 0: Expected enabled to be a boolean.
[!] Flutter (Channel stable, 3.32.0, on macOS 15.4 24E248 darwin-arm64, locale en-US)
    ! Warning: `flutter` on your path resolves to /Users/mahesh/Development/flutter_master/bin/flutter, which is not inside your current Flutter SDK checkout
      at /Users/mahesh/Development/flutter. Consider adding /Users/mahesh/Development/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/mahesh/Development/flutter_master/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/mahesh/Development/flutter. Consider adding /Users/mahesh/Development/flutter/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
[✓] VS Code (version 1.96.2)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.

maheshj01 avatar Jun 07 '25 12:06 maheshj01

Hey @aju-annaseem, Thanks for filing the issue. What version of flutter are you using? You need to use latest stable version of flutter inorder to build with stable 1.3.2 or switch back to older version 1.3.1

mahesh@MacBook-Pro-81 example % flutter build apk Font asset "CupertinoIcons.ttf" was tree-shaken, reducing it from 257628 to 1040 bytes (99.6% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 1572 bytes (99.9% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app. Running Gradle task 'assembleRelease'... 80.5s ✓ Built build/app/outputs/flutter-apk/app-release.apk (20.7MB) mahesh@MacBook-Pro-81 example % flutter doctor Doctor summary (to see all details, run flutter doctor -v): Could not load custom device from config index 0: Expected enabled to be a boolean. [!] Flutter (Channel stable, 3.32.0, on macOS 15.4 24E248 darwin-arm64, locale en-US) ! Warning: flutter on your path resolves to /Users/mahesh/Development/flutter_master/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/mahesh/Development/flutter. Consider adding /Users/mahesh/Development/flutter/bin to the front of your path. ! Warning: dart on your path resolves to /Users/mahesh/Development/flutter_master/bin/dart, which is not inside your current Flutter SDK checkout at /Users/mahesh/Development/flutter. Consider adding /Users/mahesh/Development/flutter/bin to the front of your path. [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 16.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.3) [✓] IntelliJ IDEA Community Edition (version 2021.2.1) [✓] VS Code (version 1.96.2) [✓] Connected device (2 available) [✓] Network resources

! Doctor found issues in 1 category.

i am using the latest version 1.3.2 but still facing the same issue

osmanjavaid10 avatar Jul 24 '25 16:07 osmanjavaid10

@maheshj01 , I've created a PR by removing the deprecated parameters. Please see: https://github.com/maheshj01/searchfield/pull/249

utkuvrs avatar Aug 19 '25 09:08 utkuvrs

Today i upgraded flutter to latest which is

[√] Flutter (Channel stable, 3.35.1, on Microsoft Windows [Version 10.0.19045.6216], locale en-PK) [1,347ms] • Flutter version 3.35.1 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 20f8274939 (5 days ago), 2025-08-14 10:53:09 -0700 • Engine revision 1e9a811bf8 • Dart version 3.9.0 • DevTools version 2.48.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

And after that i keep getting this error while building my application.

I am using the latest version

searchfield: ^1.3.3

Error details:

/C:/Users/osman/AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.3/lib/src/input_decoration.dart:136:25: Error: The method 'SearchInputDecoration.copyWith' doesn't have the named parameter 'semanticsService' of overridden method 'InputDecoration.copyWith'. SearchInputDecoration copyWith({ ^ /C:/src/flutter/packages/flutter/lib/src/material/input_decorator.dart:3856:19: Context: This is the overridden method ('copyWith'). InputDecoration copyWith({ ^ Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to generate a Build Scan (Powered by Develocity). Get more help at https://help.gradle.org.

BUILD FAILED in 35s Error: Gradle task assembleDebug failed with exit code 1

Its very annoying that everytime i upgrade flutter to latest and your package starts causing issues, either keep it up to date or remove it from the pub,dev

osmanjavaid10 avatar Aug 19 '25 14:08 osmanjavaid10

@maheshj01 , I've created a PR by removing the deprecated parameters. Please see: #249

Today i upgraded flutter to latest which is

[√] Flutter (Channel stable, 3.35.1, on Microsoft Windows [Version 10.0.19045.6216], locale en-PK) [1,347ms] • Flutter version 3.35.1 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 20f8274939 (5 days ago), 2025-08-14 10:53:09 -0700 • Engine revision 1e9a811bf8 • Dart version 3.9.0 • DevTools version 2.48.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

And after that i keep getting this error while building my application.

I am using the latest version

searchfield: ^1.3.3

Error details:

/C:/Users/osman/AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.3.3/lib/src/input_decoration.dart:136:25: Error: The method 'SearchInputDecoration.copyWith' doesn't have the named parameter 'semanticsService' of overridden method 'InputDecoration.copyWith'. SearchInputDecoration copyWith({ ^ /C:/src/flutter/packages/flutter/lib/src/material/input_decorator.dart:3856:19: Context: This is the overridden method ('copyWith'). InputDecoration copyWith({ ^ Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to generate a Build Scan (Powered by Develocity). Get more help at https://help.gradle.org.

BUILD FAILED in 35s Error: Gradle task assembleDebug failed with exit code 1

Its very annoying that everytime i upgrade flutter to latest and your package starts causing issues, either keep it up to date or remove it from the pub,dev

osmanjavaid10 avatar Aug 19 '25 14:08 osmanjavaid10

Today i upgraded flutter to latest which is

[√] Flutter (Channel stable, 3.35.1, on Microsoft Windows [Version 10.0.19045.6216], locale en-PK) [1,347ms] • Flutter version 3.35.1 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 20f8274939 (5 days ago), 2025-08-14 10:53:09 -0700 • Engine revision 1e9a811bf8 • Dart version 3.9.0 • DevTools version 2.48.0 • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

And after that i keep getting this error while building my application.

I am using the latest version

searchfield: ^1.3.3

Error details:

/C:/Users/osman/AppData/Local/Pub/Cache/hosted/ pub.dev/searchfield-1.3.3/lib/src/input_decoration.dart:136:25: Error: The method 'SearchInputDecoration.copyWith' doesn't have the named parameter 'semanticsService' of overridden method 'InputDecoration.copyWith'. SearchInputDecoration copyWith({ ^ /C:/src/flutter/packages/flutter/lib/src/material/input_decorator.dart:3856:19: Context: This is the overridden method ('copyWith'). InputDecoration copyWith({ ^ Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to generate a Build Scan (Powered by Develocity). Get more help at https://help.gradle.org.

BUILD FAILED in 35s Error: Gradle task assembleDebug failed with exit code 1

Its very annoying that everytime i upgrade flutter to latest and your package starts causing issues, either keep it up to date or remove it from the pub,dev

On Tue, Aug 19, 2025 at 2:08 PM Utku @.***> wrote:

utkuvrs left a comment (maheshj01/searchfield#239) https://github.com/maheshj01/searchfield/issues/239#issuecomment-3199900259

@maheshj01 https://github.com/maheshj01 , I've created a PR by removing the deprecated parameters. Please see: #249 https://github.com/maheshj01/searchfield/pull/249

— Reply to this email directly, view it on GitHub https://github.com/maheshj01/searchfield/issues/239#issuecomment-3199900259, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6EJNTPMUD66YC7KZRFIK6T3OLSSJAVCNFSM6AAAAAB6H3NMW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOJZHEYDAMRVHE . You are receiving this because you commented.Message ID: @.***>

osmanjavaid10 avatar Aug 19 '25 14:08 osmanjavaid10

Is there any update on this?

itaishalom avatar Sep 15 '25 12:09 itaishalom