Exception thrown reading certain epub files
This is different from #3. I have tested the file they linked and it does not throw an exception.
Describe the bug The method ChapterReader.getChaptersImpl is throwing an exception because it can't find the key in the html map
I have identified the cause in ChapterReader.getChaptersImpl (line 34)
if (!bookRef.Content!.Html!.containsKey(contentFileName))
Where:
contentFileName is "../Text/Section00001.xhtml"
but the actual key in bookRef.Content!.Html! is "Text/Section00001.xhtml"
So it throws the exception
To Reproduce Steps to reproduce the behavior:
- Open this epub
- See error thrown when trying to get chapters with the chapter reader (specifically with epub_view's EpubView widget)
Screenshots

I made an issue at https://github.com/rbcprolabs/packages.flutter/issues/237, but that was before I found the core cause.
What solution did you find?
Did you get solution?
@petersephrin @shinkhantmaung no i haven’t. The only solution right now is to write your own library or fork it and fix the bugs yourself.
I’m working on my own library but its a long way from completion, and I’ve been too busy to work on it recently.