Mantano / iridium

Unofficial Dart/Flutter port of some of the Readium 2 components
80 stars 27 forks source link

Can we add page turn/ pageflip affect when changing the pages #118

Open rafeywaleed opened 4 weeks ago

jmgeffroy commented 3 weeks ago

Hello @rafeywaleed This is doable, thanks to the fact that we are using Flutter_InAppWebview, which provides a HeadlessInappWebview that allows to create shapshots fo the contents. This is the exact reason why we chose it, indeed... In our own app, on which Iridium is based, we create snapshots of pages, which are displayed in a progressbar (like the Kindle and Google Play apps do). Your feature request should use a similar technique. As soon as the user starts a page turn gesture, you must overlay a page turner widget that temporarily hides the webview. I don't have time to implement it, buy I can provide the code for our "SnapshottingThumbnailsGenerator", which uses this HeadlessInappWebview.