Custom-navigator icon indicating copy to clipboard operation
Custom-navigator copied to clipboard

The non-abstract class '_CustomNavigatorState' is missing implementations

Open sgehrman opened this issue 5 years ago • 13 comments

I just updated to the latest flutter beta:

../../../.pub-cache/hosted/pub.dartlang.org/custom_navigator-0.3.0/lib/custom_navigator.dart:60:7: Error: The non-abstract class '_CustomNavigatorState' is missing implementations for these members:

  • WidgetsBindingObserver.didPushRouteInformation 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 _CustomNavigatorState extends State<CustomNavigator> ^^^^^^^^^^^^^^^^^^^^^ ../../../google/flutter/packages/flutter/lib/src/widgets/binding.dart:122:16: Context: 'WidgetsBindingObserver.didPushRouteInformation' is defined here. Future didPushRouteInformation(RouteInformation routeInformation) { ^^^^^^^^^^^^^^^^^^^^^^^ Failed to compile application. Exited (sigterm)

sgehrman avatar Aug 22 '20 02:08 sgehrman

have the same issue..any updates?

SKerencic avatar Aug 30 '20 18:08 SKerencic

have the same issue..any updates?

Same here, does someone have any update on this ?

ghost avatar Sep 13 '20 08:09 ghost

@override
  Future<bool> didPushRouteInformation(RouteInformation routeInformation) {
    return didPushRoute(routeInformation.location);
  }

iNoles avatar Sep 17 '20 22:09 iNoles

Thanks @iNoles, it works, adding the implementation in custom_navigator.dart solves the problem.

micheleferraro avatar Sep 24 '20 07:09 micheleferraro

Hey, Thanks @iNoles it worked

Please bring new version with this change in plugin ASAP

I did tested with it and introduced a new bug.

The method 'call' was called on null.
Receiver: null
Tried calling: call()

on widget.onItemTap(index);

iNoles avatar Oct 03 '20 03:10 iNoles

Use this in your pubspec.yaml

 custom_navigator:
    git:
      url: https://github.com/kjawadDeveloper/Custom-navigator.git

kjawadDeveloper avatar Oct 03 '20 09:10 kjawadDeveloper

@kjawadDeveloper You saved my day. Thank you.

seenewmax avatar Oct 07 '20 03:10 seenewmax

Use this in your pubspec.yaml

 custom_navigator:
    git:
      url: https://github.com/kjawadDeveloper/Custom-navigator.git

This solution solved the build error but seems to cause another problem. When a tab item is clicked, it is supposed to show the tab page immediately but if several pages are stacked up by Navigator.push, they only gets Navigator.pop.

Changed the package to another one. I found this okay. https://pub.dev/packages/persistent_bottom_nav_bar

seenewmax avatar Oct 08 '20 04:10 seenewmax

Use this in your pubspec.yaml

 custom_navigator:
    git:
      url: https://github.com/kjawadDeveloper/Custom-navigator.git

This solution solved the build error but seems to cause another problem. When a tab item is clicked, it is supposed to show the tab page immediately but if several pages are stacked up by Navigator.push, they only gets Navigator.pop.

Changed the package to another one. I found this okay. https://pub.dev/packages/persistent_bottom_nav_bar

I did have same problem too.

iNoles avatar Oct 14 '20 02:10 iNoles

It works the solution of @iNoles 👍🏽

manudevcode avatar Jul 24 '21 17:07 manudevcode