You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the newly released version of Flutter I get the following error trying to compile our app:
searchfield-1.2.0/lib/src/input_decoration.dart:128:25: Error: The method 'SearchInputDecoration.copyWith' doesn't have the named parameter 'maintainHintHeight' of overridden method 'InputDecoration.copyWith'. SearchInputDecoration copyWith({ ^ ../../../flutter/packages/flutter/lib/src/material/input_decorator.dart:3597:19: Context: This is the overridden method ('copyWith'). InputDecoration copyWith({ ^
Seems like the copyWith method does not fit to InputDecoration of Flutter material anymore...
The text was updated successfully, but these errors were encountered:
maheshj01
added
in triage
Issue is currently being triaged
P1
High Priority: This is a show stopper and must be addressed immediately
bug
Something isn't working
and removed
in triage
Issue is currently being triaged
labels
Dec 12, 2024
I think this fix broke compatibility with older versions of Flutter. @maheshj01
Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.2.1/lib/src/input_decoration.dart:62:3:
Error: The superclass, 'InputDecoration', has no unnamed constructor that takes no arguments.
SearchInputDecoration({
^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/searchfield-1.2.1/lib/src/input_decoration.dart:196:54:
Error: The getter 'maintainHintHeight' 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.2.1/lib/src/input_decoration.dart').
maintainHintHeight: maintainHintHeight ?? this.maintainHintHeight,
^^^^^^^^^^^^^^^^^^
Error: Compilation failed.
The bug
With the newly released version of Flutter I get the following error trying to compile our app:
searchfield-1.2.0/lib/src/input_decoration.dart:128:25: Error: The method 'SearchInputDecoration.copyWith' doesn't have the named parameter 'maintainHintHeight' of overridden method 'InputDecoration.copyWith'. SearchInputDecoration copyWith({ ^ ../../../flutter/packages/flutter/lib/src/material/input_decorator.dart:3597:19: Context: This is the overridden method ('copyWith'). InputDecoration copyWith({ ^
Seems like the copyWith method does not fit to InputDecoration of Flutter material anymore...
The text was updated successfully, but these errors were encountered: