Cannot find declaration to go to - Flutter Update

Asked

Viewed 53 times

0

Hello, I updated the flutter recently, and now the project does not want to run... I believe it is something of the new update...

That’s the mistake down there.

inserir a descrição da imagem aqui

Version:

inserir a descrição da imagem aqui

  • 1

    According to the package changelog there is a Breaking change na 2.0.0 -> "Numberpicker.integer is now Numberpicker."

  • 1

    show!!! thank you so much!!! I think I got it right here...

  • but when I’m going to perform, it comes to this... (this was going bad already in the beginning...

  • /C:/src/flutter/. pub-cache/Hosted/pub.dartlang.org/flutter_duration_picker-1.0.4/lib/flutter_duration_picker.Dart:506:44: Error: Method not found: 'Buttontheme.bar'. final Widget actions = new Buttontheme.bar( FAILURE: Build failed with an Exception. * Where: Script 'C: src flutter Packages flutter_tools Gradle flutter.Gradle' line: 991 * What Went Wrong: Execution failed for task ':app:compileFlutterBuildDebug'. > Process 'command 'C: src flutter bin flutter.bat'' finished with non-zero Exit value 1

  • Looks like a problem with another widget (Buttontheme), see if this solves it: https://stackoverflow.com/q/66027441/4056678 - looks like it needs to change ButtonTheme.bar for ButtonBarTheme. Maybe it’s good to lock dependency versions on your pubspec.yml so there are no surprises with updates.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.