In my Flutter app, I want to be able to create some kind of certificate of completion. The layout will be always the same, but picture and text in it should change. This certificate should be created in a jpg format, so I can share it with other apps.
Does anyone have an idea how this could be accomplished?
The only way I can imagine is that I create a Screen template where I put in text and picture, then let the phone take a screenshot and save that screenshot automatically. But this might lead to unwanted content in the picture and different image sizes. I have searched for Widgets/ ways to create an image in Flutter but could not find anything.
You will need to create a widget with constructors (Image and text).
Then use a flutter package called screenshot to capture the parent widget as image and save it to the users phone.
plugin link: https://pub.dev/packages/screenshot
Related
I did some research and find out that you can create PDF with images or texts or by exporting the screenshot, but I want to create much more like in the image below:
So what I want to achieve is to have a good resolution for PDF to print the PDF as a book after this. The physical book has a lot of pages and my client wants to create the virtual one.
So, I have the design (as you can see in the image), but I still need to create some text fields, signature and some logic in the widget.
How can I export after that to a one page PDF for every widget?
Screenshot won't be enough because I think it doesn't have a good quality and ofc the text and everything else won't be suited in the phone screen.
I am thinking to use the basic design and to add manually by code the texts, but I don't know how to export this to a PDF after that.
Of Course! The pdf package is a great start.
I want to overlay a caption to different sorts of media (images, gifs, videos). Essentially add a white bar on top or bottom of the image and then write in some text. Then save the image/video to firebase as a new image with the caption added to it.
Does anyone know of any useful packages or tutorials that could help me do this?
There are some dart packages I can list so that they will help you:
Image editor pro
For storing them in firebase i can list you another package:
Firebase picture uploader
I upload the pdf file from storage.
I'm trying to place the signature image at the bottom of every single page of pdf file and save as new pdf file using flutter.
I don't know how to do that? I tried my sample but I didn't find the solution I wanted. Please suggest me any flutter plugins or packages.
The idea is very simple: it consists of reading the pdf file as images
(one image per page), and then create a pdf, having as background one
of the retrieved images.
this article explains what u need
https://medium.com/flutter-community/edit-a-pdf-in-flutter-6a80f8aa7dfd
For an application I need a document that is able to record and display among each other any type (text, audio, video, HTML, maybe PDF) that the user enters or inserts.
At first I wanted to use a listview with different types of widgets (textfields, video via plugin, webview via plugin etc.), but it seemed much too complicated to me. For example, how could I have selected parts of a text field, the following image and parts of the next text field at the same time?
Actually, the document format that I need already exists: HTML. If you set the attribute "contentEditable" accordingly, it is not a big problem to let the user change the document in any way with the help of JS. And this is exactly my problem: If I use the Webview (Developer Preview) of the Flutter team (webview_flutter), the attribute "contentEditable" is apparently ignored. I can't mark text and no keyboard appears.
Am I doing something wrong or does the plugin not (yet) support this attribute? Otherwise, is there an alternative? I have to say that I am an absolute beginner in Flutter.
Trying to make my own progressing/loading message dialog by keeping an animated image like GIF in it. But, its not working.
Can any one help me how to use the animated images in Smartface app studio.
Thanks in advance
Up to now, only png files were being used to show icons in Smartface.
But, with the new release (4.5.0), "Assets" folder will be in use. You will be able to place different kind of files inside this folder, and you can reach them such as below :
assets://myfile.txt