hurshi / dio-http-cache

http cache lib for Flutter dio like RxCache
Apache License 2.0
274 stars 223 forks source link

Flutter Web support #42

Open fvisticot opened 4 years ago

fvisticot commented 4 years ago

Flutter Web will be stable in the coming month. It would be very nice to have WEB support for our current app with minimum changes. My current application is using http-cache and due to sqlite dependency, the app can not run on WEB. A solution will be to use sembast plugin (WEB ready).

avioli commented 4 years ago

Fork it. Make it. Contribute back.

Edit: I’m serious. People expect you to add features on demand, but quite often never contribute anything. Programming isn’t easy and sometimes takes many hours of thinking and debugging. If you want a feature - give it a go - you are also a programmer. The source code of this lib is open, so one can clone it and alter it.

mahidul-islam commented 3 years ago

Hello @avioli Some people are biginner and they can't modify or even fully understand what is going on inside most plugin...

So please if you can, think about doing it or some actual guideline on how to achive this...

avioli commented 3 years ago

@mahidul-islam As I said:

Programming isn’t easy and sometimes takes many hours of thinking and debugging.

That doesn’t only apply to me, but to everyone that attempts at programming. You won’t learn much if someone else does it for you.

Federated Flutter plugins support requires quite a bit of refactoring. It isn’t an easy, two-click process. There is only documentation how to start a brand-new plugin with support for multiple platforms, but nothing about how to add support to an existing plugin. Maybe that would be a better task - extend Flutter’s docs.

Having said all that - the author can, when they find the time and will, to accomplish what this request asks for. Until then one can either wait or start programming to achieve it themselves.