material-components-flutter-adaptive
material-components-flutter-adaptive copied to clipboard
adaptive_navigation example does not build
When attempting to run the example project using the command:
flutter run
You get the following error:
Because adaptive_navigation_example depends on adaptive_navigation from path which depends on adaptive_breakpoints ^0.1.2, adaptive_breakpoints ^0.1.2 is required. So, because adaptive_navigation_example depends on adaptive_breakpoints ^0.0.4, version solving failed.
This is due to the adaptive_breakpoints version in your pubspec.yaml was set to ^0.0.4 rather than ^0.1.4. It's an easy fix.
please remove no need package as follow:
- adaptive_navigation/example/pubspec.yaml
dependencies:
flutter:
sdk: flutter
adaptive_navigation:
path: ../
# adaptive_breakpoints: ^0.1.4 <<<