Skip to content

I cannot use the package many errors appear  #194

@rehamalraee24

Description

@rehamalraee24

Describe the bug
When I run the app many errors appear and cannot fix them

To Reproduce
Steps to reproduce the behavior:

  1. pubget the plugin
  2. Initialise it
  3. wrap the app with smooth
  4. run

Expected behavior
App should run normmaly

Smartphone (please complete the following information):

  • Iphone 15
  • IOS 17.2

Additional context
Performing hot restart...
Syncing files to device iPhone 15...
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:130:17: Error: Type 'HitTestEntryFilter' not found.
{required HitTestEntryFilter? filter}) {
^^^^^^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:113:3: Error: Type 'ui.ViewConfiguration' not found.
ui.ViewConfiguration get viewConfiguration => inner.viewConfiguration;
^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:104:7: Error: The non-abstract class 'ProxyFlutterView' is missing implementations for these members:

  • FlutterView.gestureSettings
  • FlutterView.viewId
    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 ProxyFlutterView implements ui.FlutterView {
^^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:234:23: Context: 'FlutterView.gestureSettings' is defined here.
GestureSettings get gestureSettings => _viewConfiguration.gestureSettings;
^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:58:16: Context: 'FlutterView.viewId' is defined here.
final Object viewId;
^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:148:7: Error: The non-abstract class 'ProxySingletonFlutterWindow' is missing implementations for these members:

  • FlutterView.gestureSettings
  • FlutterView.viewId
    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 ProxySingletonFlutterWindow extends ProxyFlutterView
^^^^^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:234:23: Context: 'FlutterView.gestureSettings' is defined here.
GestureSettings get gestureSettings => _viewConfiguration.gestureSettings;
^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:58:16: Context: 'FlutterView.viewId' is defined here.
final Object viewId;
^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:175:7: Error: The non-abstract class 'SmoothSingletonFlutterWindow' is missing implementations for these members:

  • FlutterView.gestureSettings
  • FlutterView.viewId
    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 SmoothSingletonFlutterWindow extends ProxySingletonFlutterWindow
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:234:23: Context: 'FlutterView.gestureSettings' is defined here.
GestureSettings get gestureSettings => _viewConfiguration.gestureSettings;
^^^^^^^^^^^^^^^
org-dartlang-sdk:///flutter/lib/ui/window.dart:58:16: Context: 'FlutterView.viewId' is defined here.
final Object viewId;
^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:7:7: Error: The non-abstract class 'ProxyPipelineOwner' is missing implementations for these members:

  • PipelineOwner.adoptChild
  • PipelineOwner.attach
  • PipelineOwner.detach
  • PipelineOwner.dropChild
  • PipelineOwner.visitChildren
    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 ProxyPipelineOwner implements PipelineOwner {
^^^^^^^^^^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1354:8: Context: 'PipelineOwner.adoptChild' is defined here.
void adoptChild(PipelineOwner child) {
^^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1303:8: Context: 'PipelineOwner.attach' is defined here.
void attach(PipelineManifold manifold) {
^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1319:8: Context: 'PipelineOwner.detach' is defined here.
void detach() {
^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1372:8: Context: 'PipelineOwner.dropChild' is defined here.
void dropChild(PipelineOwner child) {
^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1389:8: Context: 'PipelineOwner.visitChildren' is defined here.
void visitChildren(PipelineOwnerVisitor visitor) {
^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:246:7: Error: The non-abstract class '_SmoothPipelineOwner' is missing implementations for these members:

  • PipelineOwner.adoptChild
  • PipelineOwner.attach
  • PipelineOwner.detach
  • PipelineOwner.dropChild
  • PipelineOwner.visitChildren
    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 _SmoothPipelineOwner extends ProxyPipelineOwner {
^^^^^^^^^^^^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1354:8: Context: 'PipelineOwner.adoptChild' is defined here.
void adoptChild(PipelineOwner child) {
^^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1303:8: Context: 'PipelineOwner.attach' is defined here.
void attach(PipelineManifold manifold) {
^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1319:8: Context: 'PipelineOwner.detach' is defined here.
void detach() {
^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1372:8: Context: 'PipelineOwner.dropChild' is defined here.
void dropChild(PipelineOwner child) {
^^^^^^^^^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/object.dart:1389:8: Context: 'PipelineOwner.visitChildren' is defined here.
void visitChildren(PipelineOwnerVisitor visitor) {
^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart:36:27: Error: Method not found: 'TickerRegistry'.
final _tickerRegistry = TickerRegistry();
^^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:301:7: Error: Class 'WidgetsFlutterBinding with SmoothSchedulerBindingMixin, SmoothGestureBindingMixin with SmoothRendererBindingMixin' inherits multiple members named 'BindingBase with GestureBinding, SchedulerBinding, ServicesBinding, PaintingBinding, SemanticsBinding, RendererBinding.dispatchEvent%GestureBinding.dispatchEvent%RendererBinding.dispatchEvent%SmoothGestureBindingMixin.dispatchEvent' with incompatible signatures.
Try adding a declaration of 'BindingBase with GestureBinding, SchedulerBinding, ServicesBinding, PaintingBinding, SemanticsBinding, RendererBinding.dispatchEvent%GestureBinding.dispatchEvent%RendererBinding.dispatchEvent%SmoothGestureBindingMixin.dispatchEvent' to 'WidgetsFlutterBinding with SmoothSchedulerBindingMixin, SmoothGestureBindingMixin with SmoothRendererBindingMixin'.
class SmoothWidgetsFlutterBinding extends WidgetsFlutterBinding
^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/binding.dart:322:8: Context: This is one of the overridden members.
void dispatchEvent(PointerEvent event, HitTestResult? hitTestResult) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/binding.dart:322:8: Context: This is one of the overridden members.
void dispatchEvent(PointerEvent event, HitTestResult? hitTestResult) {
^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:301:7: Error: Class 'WidgetsFlutterBinding with SmoothSchedulerBindingMixin, SmoothGestureBindingMixin, SmoothRendererBindingMixin with SmoothWidgetsBindingMixin' inherits multiple members named 'BindingBase with GestureBinding, SchedulerBinding, ServicesBinding, PaintingBinding, SemanticsBinding, RendererBinding.dispatchEvent%GestureBinding.dispatchEvent%RendererBinding.dispatchEvent%SmoothGestureBindingMixin.dispatchEvent%RendererBinding.dispatchEvent' with incompatible signatures.
Try adding a declaration of 'BindingBase with GestureBinding, SchedulerBinding, ServicesBinding, PaintingBinding, SemanticsBinding, RendererBinding.dispatchEvent%GestureBinding.dispatchEvent%RendererBinding.dispatchEvent%SmoothGestureBindingMixin.dispatchEvent%RendererBinding.dispatchEvent' to 'WidgetsFlutterBinding with SmoothSchedulerBindingMixin, SmoothGestureBindingMixin, SmoothRendererBindingMixin with SmoothWidgetsBindingMixin'.
class SmoothWidgetsFlutterBinding extends WidgetsFlutterBinding
^
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/rendering/binding.dart:322:8: Context: This is one of the overridden members.
void dispatchEvent(PointerEvent event, HitTestResult? hitTestResult) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/gestures/binding.dart:420:8: Context: This is one of the overridden members.
void dispatchEvent(PointerEvent event, HitTestResult? hitTestResult) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/drop_in/list_view/shift.dart:352:36: Error: The getter 'startTime' isn't defined for the class 'Ticker'.

  • 'Ticker' is from 'package:flutter/src/scheduler/ticker.dart' ('../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/scheduler/ticker.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'startTime'.
    final tickTimeStamp = _ticker!.startTime! + selfTickerElapsed;
    ^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/drop_in/list_view/shift.dart:356:59: Error: The getter 'startTime' isn't defined for the class 'Ticker'.
  • 'Ticker' is from 'package:flutter/src/scheduler/ticker.dart' ('../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/scheduler/ticker.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'startTime'.
    final ballisticTickerStartTime = info.ballisticTicker.startTime;
    ^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:60:9: Error: The method 'adjustForEpoch' isn't defined for the class 'SmoothSchedulerBindingMixin'.
  • 'SmoothSchedulerBindingMixin' is from 'package:smooth/src/infra/binding.dart' ('../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'adjustForEpoch'.
    adjustForEpoch(rawTimeStamp ?? currentSystemFrameTimeStamp));
    ^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:130:17: Error: 'HitTestEntryFilter' isn't a type.
    {required HitTestEntryFilter? filter}) {
    ^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:140:49: Error: No named parameter with the name 'filter'.
    super.dispatchEvent(event, hitTestResult, filter: filter);
    ^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:169:9: Error: No named parameter with the name 'fallbackVsyncTargetTime'.
    fallbackVsyncTargetTime: effectiveFallbackVsyncTargetTime,
    ^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/binding.dart:217:11: Error: No named parameter with the name 'forceDirectlyCallNextVsyncTargetTime'.
    forceDirectlyCallNextVsyncTargetTime:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/drop_in/list_view/controller.dart:71:25: Error: The getter 'controller' isn't defined for the class '_SmoothBallisticScrollActivity'.
  • '_SmoothBallisticScrollActivity' is from 'package:smooth/src/drop_in/list_view/controller.dart' ('../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/drop_in/list_view/controller.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'controller'.
    ?.controller.lastElapsedDuration?.inMicroseconds ??
    ^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart:58:14: Error: The method 'TickerRegistryInheritedWidget' isn't defined for the class 'AuxiliaryTreePack'.
  • 'AuxiliaryTreePack' is from 'package:smooth/src/infra/auxiliary_tree_pack.dart' ('../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'TickerRegistryInheritedWidget'.
    child: TickerRegistryInheritedWidget(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart:181:26: Error: Unexpected type 'invalid-type' of a spread. Expected 'dynamic' or an Iterable.
    ..._tickerRegistry.tickers,
    ^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart:225:16: Error: Setter not found: 'debugActiveLayout'.
    RenderObject.debugActiveLayout = null;
    ^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/auxiliary_tree_pack.dart:229:18: Error: Setter not found: 'debugActiveLayout'.
    RenderObject.debugActiveLayout = oldDebugActiveLayout;
    ^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:113:55: Error: The getter 'viewConfiguration' isn't defined for the class 'FlutterView'.
  • 'FlutterView' is from 'dart:ui'.
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'viewConfiguration'.
    ui.ViewConfiguration get viewConfiguration => inner.viewConfiguration;
    ^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:145:27: Error: No named parameter with the name 'fallbackVsyncTargetTime'.
    inner.render(scene, fallbackVsyncTargetTime: fallbackVsyncTargetTime);
    ^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/proxy.dart:263:11: Error: No named parameter with the name 'forceDirectlyCallNextVsyncTargetTime'.
    forceDirectlyCallNextVsyncTargetTime:
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/actor.dart:135:9: Error: No named parameter with the name 'fallbackVsyncTargetTime'.
    fallbackVsyncTargetTime:
    ^^^^^^^^^^^^^^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/actor.dart:143:34: Error: The method 'notifyIdle' isn't defined for the class 'PlatformDispatcher'.
  • 'PlatformDispatcher' is from 'dart:ui'.
    Try correcting the name to the name of an existing method, or defining a method named 'notifyIdle'.
    binding.platformDispatcher.notifyIdle(
    ^^^^^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/extra_event_dispatcher.dart:48:9: Error: No named parameter with the name 'filter'.
    filter: (entry) {
    ^^^^^^
    ../../../.pub-cache/git/flutter_smooth-f6ffffe960468316a01191b4fd6b18c83a04e3cc/packages/smooth/lib/src/infra/extra_event_dispatcher.dart:114:24: Error: The method 'readEnginePendingEventsAndClear' isn't defined for the class 'GestureBinding'.
  • 'GestureBinding' is from 'package:flutter/src/gestures/binding.dart' ('../../../Desktop/flutter1sdk/flutter/packages/flutter/lib/src/gestures/binding.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'readEnginePendingEventsAndClear'.
    gestureBinding.readEnginePendingEventsAndClear();
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Restarted application in 6,574ms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions