material_table_view icon indicating copy to clipboard operation
material_table_view copied to clipboard

flutter versions are not compatible

Open symboy opened this issue 10 months ago • 2 comments

../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:417:36: Error: Type 'WidgetStateProperty' not found. typedef MaterialStateProperty<T> = WidgetStateProperty<T>; ^^^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:505:48: Error: The method 'lerp' isn't defined for the class 'Type'.

  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. thumbVisibility: MaterialStateProperty.lerp<bool?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:507:42: Error: The method 'lerp' isn't defined for the class 'Type'.
  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. thickness: MaterialStateProperty.lerp<double?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:509:48: Error: The method 'lerp' isn't defined for the class 'Type'.
  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. trackVisibility: MaterialStateProperty.lerp<bool?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:513:43: Error: The method 'lerp' isn't defined for the class 'Type'.
  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. thumbColor: MaterialStateProperty.lerp<Color?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:515:43: Error: The method 'lerp' isn't defined for the class 'Type'.
  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. trackColor: MaterialStateProperty.lerp<Color?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view_style.dart:517:49: Error: The method 'lerp' isn't defined for the class 'Type'.
  • 'Type' is from 'dart:core'. Try correcting the name to the name of an existing method, or defining a method named 'lerp'. trackBorderColor: MaterialStateProperty.lerp<Color?>( ^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view.dart:139:9: Error: Type 'ItemExtentBuilder' not found. final ItemExtentBuilder? rowHeightBuilder; ^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_view.dart:139:9: Error: 'ItemExtentBuilder' isn't a type. final ItemExtentBuilder? rowHeightBuilder; ^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_layout_data.dart:19:29: Error: The getter 'a' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'. bool get visible => color.a >= .003; ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_layout.dart:367:69: Error: The method 'withValues' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'. Try correcting the name to the name of an existing method, or defining a method named 'withValues'. leftDividerColor = widget.verticalDividersStyle.leading.color.withValues( ^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_layout.dart:368:61: Error: The getter 'a' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'. alpha: widget.verticalDividersStyle.leading.color.a * ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_layout.dart:418:12: Error: The method 'withValues' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'. Try correcting the name to the name of an existing method, or defining a method named 'withValues'. .withValues( ^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/table_layout.dart:419:66: Error: The getter 'a' isn't defined for the class 'Color'.
  • 'Color' is from 'dart:ui'. Try correcting the name to the name of an existing getter, or defining a getter or field named 'a'. alpha: widget.verticalDividersStyle.trailing.color.a * ^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body.dart:12:9: Error: Type 'ItemExtentBuilder' not found. final ItemExtentBuilder? rowHeightBuilder; ^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body.dart:12:9: Error: 'ItemExtentBuilder' isn't a type. final ItemExtentBuilder? rowHeightBuilder; ^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body.dart:79:14: Error: The method 'SliverVariedExtentList' isn't defined for the class 'SliverTableBody'.
  • 'SliverTableBody' is from 'package:material_table_view/src/sliver_table_body.dart' ('../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body.dart'). Try correcting the name to the name of an existing method, or defining a method named 'SliverVariedExtentList'. return SliverVariedExtentList( ^^^^^^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body_reorderable_list.dart:5:9: Error: The superclass, 'SliverReorderableList', has no unnamed constructor that takes no arguments. const SliverTableBodyReorderableList({ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body_reorderable_list.dart:80:16: Error: The getter 'itemExtentBuilder' isn't defined for the class 'SliverReorderableList'.
  • 'SliverReorderableList' is from 'package:flutter/src/widgets/reorderable_list.dart' ('../../../.fvm/versions/3.13.8/packages/flutter/lib/src/widgets/reorderable_list.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'itemExtentBuilder'. if (widget.itemExtentBuilder != null) { ^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body_reorderable_list.dart:81:14: Error: The method 'SliverVariedExtentList' isn't defined for the class '_SliverTableReorderableListState'.
  • '_SliverTableReorderableListState' is from 'package:material_table_view/src/sliver_table_body_reorderable_list.dart' ('../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body_reorderable_list.dart'). Try correcting the name to the name of an existing method, or defining a method named 'SliverVariedExtentList'. return SliverVariedExtentList( ^^^^^^^^^^^^^^^^^^^^^^ ../../../.pub-cache/hosted/pub.flutter-io.cn/material_table_view-5.1.0/lib/src/sliver_table_body_reorderable_list.dart:83:35: Error: The getter 'itemExtentBuilder' isn't defined for the class 'SliverReorderableList'.
  • 'SliverReorderableList' is from 'package:flutter/src/widgets/reorderable_list.dart' ('../../../.fvm/versions/3.13.8/packages/flutter/lib/src/widgets/reorderable_list.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'itemExtentBuilder'. itemExtentBuilder: widget.itemExtentBuilder!, ^^^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where: Script '/Users/xxxx/.fvm/versions/3.13.8/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1297

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

Process 'command '/Users/xxxx/.fvm/versions/3.13.8/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

BUILD FAILED in 4s Exception: Gradle task assembleDebug failed with exit code 1

symboy avatar Feb 20 '25 09:02 symboy

I'll report the current situation here. Yes, some versions have flutter SDK constraints as they got updated over time. For a long time Flutter hasn't had any way of specifying Flutter version constraint for a package. Since 5.5.2 such a version constraint has been added, however, it can not be added retroactively, because the most recent version without such a constraint will be chosen anyway. The only solution in this situation would be to document Flutter version compatibility for the prior versions of the package, which I'll try to find a time to do at some point. Your issue would be helpful in that regard. Thank you for bringing this to my attention!

NikolayNIK avatar Aug 20 '25 16:08 NikolayNIK

Had an idea for a while now to determine compatibility invervals, revert all incompatible changes for a particular flutter version range in a long living range and set the corresponding flutter version constraint. Release process would entail packaging (unchanged) main version, rebasing all those branches on top of master (or on top of higher range branch to avoid resolving the same conflicts for each one) than packaging each one with a version suffix like +flutter.3.7.to.3.8 or something.

NikolayNIK avatar Nov 21 '25 16:11 NikolayNIK