Comments (5)
Can you give a more detailed description? Full disclosure: it has been a long time since I have worked with flutter.
It sounds like you are trying to something like
EpubBook epubRef = await EpubReader.readBook(bytes);
Image img = Image.memory(epubRef.CoverImage.getBytes());
Is that correct?
from dart-epub.
No, the CoverImage has class Image from the dart image package, and its getBytes() method does return a Uint8List.
I want to display images from the content: epubRef.Content.Images[imgHref].readContent()
, and this function returns List<int>
from dart-epub.
The current workaround for me is to use Uint8List.fromList()
, but it apparently copies the original array and might be slow for big images.
from dart-epub.
brendan-duncan/archive#55 (comment)
from dart-epub.
I recommend looking at the example in the examples/flutter_ex
folder. This shows how to get the image rendered in a Flutter application
from dart-epub.
Related Issues (20)
- Exception: Incorrect EPUB spine: TOC is missing HOT 2
- dart-epub needs to be updated to support the latest flutter_test HOT 4
- Extract Epub Content
- Any chance of making a Flutter Widget view of these epubs? HOT 1
- reading epub file is slow and take a lot of time HOT 1
- Epub parsing error when href is a ralative path
- How to Add Page Number ?
- Epub reader with highlights HOT 1
- Take more than 10 second to read an epub that 8MB HOT 2
- parse fail when 'contentFileName' contain urlencoded coding
- Error when opening epub 3 file.
- update pubspec
- Mismatched hashcodes
- Trouble with loading cover images. HOT 2
- Epub book read-write then read again => "EPUB parsing error: root file not found in archive."
- XML dependency HOT 2
- Null safety support HOT 2
- Where to put epub?
- Create epub from folder
- NNBD and more darty api HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-epub.