Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter share plugin not working

Tags:

flutter

dart

I followed the instructions from https://pub.dartlang.org/packages/share, adding the dependency running flutter packages get, but I can't import the plugin in my Dart code. I get the following error:

Target of URI doesn't exist: 'package:share/share.dart'.

I tried it a few times, so it's neither a typo nor a singe time bug.

Is this a known bug? And is there any fix for that?

Otherwise is there a different way of sharing simple urls and text pieces in Flutter?

like image 747
leodriesch Avatar asked Oct 29 '22 09:10

leodriesch


1 Answers

Invalidate caches and restart did work, thanks for the help!

like image 157
leodriesch Avatar answered Nov 03 '22 04:11

leodriesch