Flutter markdown disclaimer was not set correctly for me

I want to use the flutter markup package, but I can't. I added a dependency (in pubspec.yaml):

dependencies:
  flutter_markdown: "^0.0.9"

      

After package and dependency update but when i used

import 'package:flutter_markdown/flutter_markdown.dart';

      

I got an error. The URI does not exist. I raised the flutter and tried again, but nothing. I tried adding another way:

dependencies:
  flutter_markdown:
    git: "https://github.com/flutter/flutter_markdown.git"

      

But the result is the same.

How can I solve this problem?

(I am using other packages with no problem.)

+3


source to share


1 answer


I solved it thanks to @ raju-bitter comment. Steps:

  • Close your IDE (Android Studio / Intellij Idea / etc).
  • Delete cache (My was located at C: \ Users \ Username \ AppData \ Roaming \ Pub)

  • Open your IDE.



If you still get the error, execute flutter package get

in your terminal or in the IDE menu.

+1


source







All Articles