orthros / dart-epub

Epub Reader and Writer for Dart
MIT License
218 stars 226 forks source link

Using dart-epub in Flutter? #33

Closed l-k22 closed 5 years ago

l-k22 commented 6 years ago

Sorry if I'm posting in the wrong section I did try contacting Colin awhile back via email but heard nothing back, I've also asked on StackOverflow. Are there any examples showing how to use this inside a flutter application? Any guidance would be greatly appreciated.

orthros commented 6 years ago

Good hearing from you! I'm not too active in StackOverflow unfortunately. When it comes to Flutter, I must admit it has been a while since I have worked in it.

This library will parse and read an epub book, but will not render the results. If you wanted to write a "library" application that would display a list of books and perhaps their cover, have the ability to search their contents, and download the epub to their device, this would work great for you.

If you are looking for a Flutter Widget you can plug in and render an epub inside a UI, this is not it. I have thought about writing such a widget, but I have been tied up recently, and am not sure how desirable such a widget would be.

What's the use case you are looking at?

l-k22 commented 6 years ago

Hello, thank you for replying. We have a membership app which allows users to read a number of books as ePubs, these are downloaded to the device when the user signs up, users are limited to navigate to chapters and bookmark pages, open links, view images and tables. Flutter up until now has been a complete joy compared to the mainstream IDEs, so I was really hoping there was a solution to this final hurdle.

I have recently come across an ePub reader built using Flutter which I believe uses your parser, I am now trying to reverse engineer it to suit my needs - https://github.com/creatint/light-old

l-k22 commented 5 years ago

Hi, do you happen to know of any dart/flutter pagination packages? Unfortunately, the package I found only renders plain text not HTML making internal linking seemingly impossible.

thanks

orthros commented 5 years ago

Unfortunately, I do not know of any. Please let me know if you found one yourself!