-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Inline Pdf Viewing #1
Comments
I can get you a Android native appBar, but that's pretty useless since its just a top bar with the name of the app. In Android, we have the back button so going back to the app is not an issue? To get any sort of flutter component onto that PDF screen requires some sort of compositing engine that combines both flutter and Android views into one. I'll look more into how webview plugin does it, with it's |
Update- The webview plugin uses a FrameLayout, which works fine. But IMO, provides a mediocre experience. It feels like a weird mix of android and flutter views to me... I personally, would like to try out flutter Texture. I believe that it should look and feel like a non-GMO flutter widget. For instance, it's used by fluttie.
|
Great, thanks for the prompt reply. I look forward to this :D |
I look forward to this too :D |
Been quite busy with zproc. This is definitely on my to-do list. |
Zproc looks cool. Using IPC.
You should also consider NATS.
I get 800 k transactions a second on my old MacBook. Has drivers in python
and very easy to use.
It's a well known compeditoor to zmq.
I use it with flutter as well as for servers
…On Sun, 26 Aug 2018, 00:41 Dev Aggarwal, ***@***.***> wrote:
Been busy with zproc <https://github.com/pycampers/zproc>.
This is definitely on my to-do list.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwsJT6JKcxw5UzcdgcdJVJS7bRIejks5uUdK2gaJpZM4VlYpL>
.
|
Great research here.
Flutter Textures is an interesting approach. But it will mean you will
loose any clipboard ability maybe ? No sure.
But yes I was using the Textures approach to render 3d models and spin
them. Not fast of course.
…On Mon, 30 Jul 2018, 07:27 Dev Aggarwal, ***@***.***> wrote:
Update-
The webview plugin uses a FrameLayout
<https://developer.android.com/reference/android/widget/FrameLayout>,
which works fine. But IMO, provides a mediocre experience. It feels like a
weird mix of android and flutter views to me...
I personally, would like to try out flutter Textures
<https://docs.flutter.io/flutter/widgets/Texture-class.html>. Since they
are flutter widgets, I hope that they look and feel like a non-GMO flutter
app ;)
For instance, it's used by fluttie
<https://pub.dartlang.org/packages/fluttie>.
The library can render the animations by piping the output from the Lottie
Android library into a Flutter texture.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwsBdL7R0nuhs6PY_PgYnvIViEof8ks5uLpkqgaJpZM4VlYpL>
.
|
Thanks, will check it out. zproc is also compatible with TCP btw. I'm trying to get a stable feature-set first. (Working on a PUSH-PULL model right now) But if NATS really is faster than ZMQ, I wouldn't mind putting it as an alternative backend. |
Checkout liftbridge. Also because it's like Kafka you get distributed logs. When you add another node it joins and load balancers. Nothing else needed. Liftbridge is just one of the many systems you can build on top of NATS. |
What exactly was the bottleneck, the 3d rendering library or the Textures API? |
Pumping the textures to the flutter texture object is not fast. I saw another flutter project also using the Texture Flutter object. It was a 3d model viewer. Slow but worked. Anyway I think getting a MVP going is first Step |
Would it be possible to use the new AndroidView created for Inline Google Maps? flutter/flutter#19030 (comment) |
@allanwolski thats looks very interesting ! I think it worth trying and then comparing what it gives with the Flutter Texture approach. One thing i noticed between the two approaches is he z buffer. SO when you open the drawer you might get bad UX experience with android view. |
I also think it's worth a try. This may help: |
So this is basically rastisinh it to an image ?
There are tons of libs that do that but I presume you want it written in
dart ?
…On Sat, 8 Sep 2018, 18:36 allanwolski, ***@***.***> wrote:
I also think it's worth a try.
This may help:
https://medium.com/flutter-community/flutter-platformview-how-to-create-flutter-widgets-from-native-views-366e378115b6
https://docs.flutter.io/flutter/widgets/AndroidView-class.html
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwmZYRfrB435lytGqq0SUs5AqGnqcks5uY_ITgaJpZM4VlYpL>
.
|
Quick Status update - will look into this issue after iOS support is enabled. |
Any progress on this? |
I have a MVP working at the inline branch. (example) However, it seems that there are still some rough edges;
Once these are ironed out, I will merge into master. Current implementation uses flutter's new I might not be closing the PDFView on the Java side properly. Anyone with more experience here? |
Great job, @devxpy! I tested here and found only the problems reported by you. |
I experience crashes with multiple tabs and the plugin of the inline branch. Maybe i can send logs later. |
But anyways thank you very much for this 👍 |
@Borduni multiple tabs, can you please provide more context? |
I have a layout with a bottom navigation bar (3 pages). The app crashes when switching between them after implementing this plugin. If I revert it everything is fine again |
@Borduni I think it would really help if you could provide some error logs 😸 |
Okay I think the error was because of my phone. I have installed a custom rom. Tried it on the same phone without any modifications and it worked, thanks! |
That's weird. This could be an issue upstream with flutter. Let me try upgrading to flutter 1.0 |
Do you have any idea when this will merge into master? |
@allanwolski I cannot say for sure when this will merge into master. I still have these issues, with really no idea why they're happening. The flutter Platform views are still a preview feature. I really want to do ios, but cannot seem to get my hands on a compiler :/ |
@devxpy, any updates on this? Do the bugs still occur? |
I found i out that if you add to AndroidManifest.xml
the view will rerender after changing orientation. But some stack trace error occurs during that |
@Xaeroxaero where is PdfViewerThread? |
Thank you a lot for this plugin. It's amazing, the one thing it lacks is to add an AppBar in the pdfViewer activity. Any idea how it could be done? Maybe like the flutter webview plugin does?
Thanks again!
The text was updated successfully, but these errors were encountered: