I had a similar issue, but I am using Android Studio IDE and I have done the following step:
File => Invalidate caches / Restart
Run following command:
flutter clean
flutter pub get
flutter packages pub run build_runner build --delete-conflicting-outputs
About –delete-conflicting-outputs
Assume conflicting outputs in the users package are from previous builds, and skip the user prompt that would usually be provided.
Related Contents:
- What is the caret sign (^) before the dependency version number in Flutter’s pubspec.yaml?
- Sizing elements to percentage of screen width/height
- How to use conditional statement within child attribute of a Flutter Widget (Center Widget)
- What is the difference between functions and classes to create reusable widgets?
- How to deal with unwanted widget build?
- The equivalent of wrap_content and match_parent in flutter?
- InkWell not showing ripple effect
- Incorrect use of parent data widget. expanded widgets must be placed inside flex widgets
- Flutter give container rounded border
- Set the space between Elements in Row Flutter
- How to refresh an AlertDialog in Flutter?
- How can I detect if my Flutter app is running in the web?
- Add border to a Container with borderRadius in Flutter
- The parameter can’t have a value of ‘null’ because of its type in Dart
- Flutter ListView.Builder() in scrollable Column with other widgets
- Flutter: How to change the width of an AlertDialog?
- The AppBarDesign can’t be assigned to the parameter type ‘PreferredSizeWidget’
- How to upload images and file to a server in Flutter?
- How to change the size of FloatingActionButton?
- Add/Subtract months/years to date in dart?
- How to create a custom exception and handle it in dart
- How can I change the color of an string-input in a TextField?
- AnimationController The named parameter ‘vsync’ isn’t defined
- How get the name of the days of the week in Dart
- How to check if scroll position is at top or bottom in ListView?
- Do not use BuildContexts across async gaps
- How to add shadow to the text in flutter?
- How can I get the height of a widget?
- How to automatically upgrade Flutter dependencies
- Which channel do I use in Flutter SDK?
- Why do we use the dispose() method in Flutter Dart code?
- How do I return error from a Future in dart?
- Flutter Back button with return data
- Gradient Background on Flutter AppBar
- How to enable Null-Safety in Flutter?
- Flutter – Custom Font not displaying
- FlutterFirebaseCorePlugin.java uses or overrides a deprecated API
- DateTime comparison in dart
- Dart/Flutter Web unit testing errors: Error: Not found: ‘dart:html’
- How to take a screenshot of the current widget – Flutter
- Flutter – How to pass user data to all views
- Generator cannot target libraries that have not been migrated to null-safety
- How to create colour box with fixed width and height in flutter?
- Converting DateTime to time ago in Dart/Flutter
- Is there a way to auto-format flutter with vscode?
- How to remove underline below TextField?
- Flutter Dio : How to Upload Image?
- Why can’t I use context.read in build(), but I can use Provider.of with listen: false?
- How to refresh currently active page in flutter
- Flutter: How to hide or show more text within certain length