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

groovin_list_tile.dart:841:10: Error: Expected 2 type arguments #18

Open
tomkenner opened this issue Sep 9, 2023 · 0 comments
Open

Comments

@tomkenner
Copy link

With flutter 3.13.3 and groovin_widgets 3.1.0 the following error occurs while building the appbundle:

`../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:841:10: Error: Expected 2 type arguments.
with SlottedMultiChildRenderObjectWidgetMixin<_ListTileSlot> {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:920:10: Error: Expected 2 type arguments.
with SlottedContainerRenderObjectMixin<_ListTileSlot> {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:840:7: Error: The type 'SlottedMultiChildRenderObjectWidgetMixin<_ListTileSlot>' can't be mixed in.
class _GroovinListTile extends RenderObjectWidget
^
../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:919:7: Error: The type 'SlottedContainerRenderObjectMixin<_ListTileSlot>' can't be mixed in.
class _RenderListTile extends RenderBox
^
../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:840:7: Error: The non-abstract class '_GroovinListTile' is missing implementations for these members:

  • RenderObjectWidget.createElement
  • Widget.createElement
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class _GroovinListTile extends RenderObjectWidget
^^^^^^^^^^^^^^^^
../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/framework.dart:1772:23: Context: 'RenderObjectWidget.createElement' is defined here.
RenderObjectElement createElement();
^^^^^^^^^^^^^
../../../snap/flutter/common/flutter/packages/flutter/lib/src/widgets/framework.dart:346:11: Context: 'Widget.createElement' is defined here.
Element createElement();
^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:941:29: Error: The method 'childForSlot' isn't defined for the class '_RenderListTile'.

  • '_RenderListTile' is from 'package:groovin_widgets/src/widgets/groovin_list_tile.dart' ('../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
    RenderBox? get leading => childForSlot(_ListTileSlot.leading);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:942:27: Error: The method 'childForSlot' isn't defined for the class '_RenderListTile'.
  • '_RenderListTile' is from 'package:groovin_widgets/src/widgets/groovin_list_tile.dart' ('../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
    RenderBox? get title => childForSlot(_ListTileSlot.title);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:943:30: Error: The method 'childForSlot' isn't defined for the class '_RenderListTile'.
  • '_RenderListTile' is from 'package:groovin_widgets/src/widgets/groovin_list_tile.dart' ('../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
    RenderBox? get subtitle => childForSlot(_ListTileSlot.subtitle);
    ^^^^^^^^^^^^
    ../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart:944:30: Error: The method 'childForSlot' isn't defined for the class '_RenderListTile'.
  • '_RenderListTile' is from 'package:groovin_widgets/src/widgets/groovin_list_tile.dart' ('../../../.pub-cache/hosted/pub.dev/groovin_widgets-3.1.0/lib/src/widgets/groovin_list_tile.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
    RenderBox? get trailing => childForSlot(_ListTileSlot.trailing);
    ^^^^^^^^^^^^
    Target kernel_snapshot failed: Exception
    `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant