1

for this specific case, I'm trying to use Provider on Flutter Web,

but I'm sure that this will not be the last flutter package

that I will use on flutter web, so I'm trying to understand

how to solve this as a generic situation.

I came across this question :

Using flutter mobile packages in flutter web

and this answer:

you can also use libraries that are referencing Flutter framework that was repackaged for flutter_web. Like provider was forked [link]. You only can't use plugins atm.

For my understanding the suggested procedure is

  1. Fork
  2. Repack
  3. Import

While "Fork" is straight forward, feel the need to ask:

  • How to Repack a Flutter Plugins to use for Flutter Web?

since this time I got lucky and Kevin already did the repacking

Thank you in advance

Samet ÖZTOPRAK
  • 3,112
  • 3
  • 32
  • 33
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
  • if you don't want to make it public, i think you can just copy the source code (lib folder) over to your project and change the name space of the imports - i know that isn't your question, but might get you on your way – dazza5000 Aug 30 '19 at 20:40

1 Answers1

0

got the answer here

just

  • clone the repository you want to use,
  • copy the files in your project
  • fix the errors

then everything should work

Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85