device_simulator
device_simulator copied to clipboard
Having issue with custom_navigator dependency
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.
Same issue, maybe device_simulator's dependency lib "Custom-navigator" problem https://github.com/ayham95/Custom-navigator/issues/27
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.
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
For people running into this, there is an alternative package: https://pub.dev/packages/device_preview
using device_preview now. Sad that this package is not supported anymore.
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
'ChipsInputState' is missing implementations for these members:
- TextInputClient.insertTextPlaceholder
- TextInputClient.removeTextPlaceholder
- TextInputClient.showToolbar