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

I cannot use the package many errors appear #194

Open
rehamalraee24 opened this issue Feb 5, 2024 · 12 comments
Open

I cannot use the package many errors appear #194

rehamalraee24 opened this issue Feb 5, 2024 · 12 comments

Comments

@rehamalraee24
Copy link

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.
Copy link

welcome bot commented Feb 5, 2024

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Feb 5, 2024

Hi, as mentioned in doc and other issues, you need the custom flutter engine build to play with it.

@rehamalraee24
Copy link
Author

@fzyzcjy Can u please elaborate more on that? how to make it?

@fzyzcjy
Copy link
Owner

fzyzcjy commented Feb 5, 2024

Just check previous issues in https://github.com/fzyzcjy/flutter_smooth/issues for more info. for example, #182

@rehamalraee24
Copy link
Author

@fzyzcjy is there any easier way?

@fzyzcjy
Copy link
Owner

fzyzcjy commented Feb 6, 2024

There seems none... Because flutter_smooth needs to modify the flutter engine and framework.

@rehamalraee24
Copy link
Author

@fzyzcjy do I have to use the engine you added https://github.com/fzyzcjy/engine/tree/flutter-smooth
or create a new one? what modifications do I have to make to use it?
I tried to understand the thread you sent but unfortunately cannot get it done

@fzyzcjy
Copy link
Owner

fzyzcjy commented Feb 11, 2024

Yes, just use the custom engine as well as custom framework.

@Dev-AH
Copy link

Dev-AH commented Apr 27, 2024

is there any new update on these many errors or we can't use this package anymore ??

@fzyzcjy
Copy link
Owner

fzyzcjy commented Apr 28, 2024

Not yet... I am quite busy and maintaining packages like https://github.com/fzyzcjy/flutter_rust_bridge also need some energy...

@Dev-AH
Copy link

Dev-AH commented Apr 28, 2024

I wish you could update it, it is priceless package ♥

@fzyzcjy
Copy link
Owner

fzyzcjy commented Apr 28, 2024

Thank you, and I also hope I can squeeze out some time for this!

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

3 participants