device_simulator icon indicating copy to clipboard operation
device_simulator copied to clipboard

Having issue with custom_navigator dependency

Open ducquynhnguyeninfo opened this issue 5 years ago • 7 comments
trafficstars

I have an issue when building the new app after upgraded futter to stable 1.22. Dug a little and saw file device_simulator.dart using custom_navigator.dart in line 4.

The build logs:

Launching lib/main/main.dart on iPhone 11 Pro in debug mode... Running Xcode build... Xcode build done. 24.2s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED **

Xcode's output: ↳ ../../../development/flutter/.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>
      ^^^^^^^^^^^^^^^^^^^^^
../../../development/flutter/packages/flutter/lib/src/widgets/binding.dart:122:16: Context: 'WidgetsBindingObserver.didPushRouteInformation' is defined here.
  Future<bool> didPushRouteInformation(RouteInformation routeInformation) {
               ^^^^^^^^^^^^^^^^^^^^^^^

Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the application for the simulator. Error launching application on iPhone 11 Pro.

ducquynhnguyeninfo avatar Oct 04 '20 14:10 ducquynhnguyeninfo

Same issue, maybe device_simulator's dependency lib "Custom-navigator" problem https://github.com/ayham95/Custom-navigator/issues/27

ossgoossgo avatar Oct 07 '20 17:10 ossgoossgo

Same issue here, I need the package to run on stable since I'm running CI/CD with flutter 1.22 and haven't been able to since upgrade.

Aperezpe avatar Oct 09 '20 23:10 Aperezpe

This package seems abandoned, guys. I recomend you guys to fork your own project and fix the custom_navigator dependency like they did in the fix above... Later when that fix gets merged, update the legit dependency and open a PR.

I guess theres no better option. This package is very usefull

eugenio165 avatar Oct 11 '20 01:10 eugenio165

For people running into this, there is an alternative package: https://pub.dev/packages/device_preview

syonip avatar Nov 13 '20 12:11 syonip

using device_preview now. Sad that this package is not supported anymore.

JulianBissekkou avatar Jan 22 '21 09:01 JulianBissekkou

Try to either

  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

ravinabavishi avatar Feb 10 '22 13:02 ravinabavishi

'ChipsInputState' is missing implementations for these members:

  • TextInputClient.insertTextPlaceholder
  • TextInputClient.removeTextPlaceholder
  • TextInputClient.showToolbar

ravinabavishi avatar Feb 10 '22 13:02 ravinabavishi