Тёмный

Create Your Own PDF Files in  

Dimitar Klaturov
Подписаться 5 тыс.
Просмотров 18 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 112   
@sssouto241
@sssouto241 Год назад
From Brazil. Good night. Thank you my friend. Congratulations
@flutterflowexpert
@flutterflowexpert Год назад
🌟 Welcome to my video! 🌟 To ensure you have the best experience and access to all the resources mentioned, we've placed all active links in the video description below. This helps me keep everything up-to-date and easy for you to find! 👾 Join my Discord community! It's a great place to connect, share, and get the latest updates. The link is in the description as well. 💖 If you enjoy our content, consider supporting the channel. Every bit of support helps me create more of what you love. Details on how you can support are also in the description. Thank you for watching and being a part of the community! 🚀
@kbdub16
@kbdub16 11 месяцев назад
very nice video!
@jerkha
@jerkha Год назад
Great content !! A visual builder for the pdf's would help me a lot but I'll give it a shot to do it the code way.
@flutterflowexpert
@flutterflowexpert Год назад
I am planing to do that as well. To share a demo template, but because they are so many possible ways that's why I was not sure if it will be relevant for users.
@MatheusPina
@MatheusPina Год назад
@@flutterflowexpert Yes, it will be useful! hahahah
@bryanrivadeneira9216
@bryanrivadeneira9216 Год назад
Genius
@noosfera_It
@noosfera_It Год назад
Спасибо! огромное и крутое
@monawang73
@monawang73 Месяц назад
Thank you for your video. I would like to know how I can add the image URL from Firebase into this PDF. Thank you.
@flutterflowexpert
@flutterflowexpert Месяц назад
The code is in my GitHub repo
@By_SophiaHC
@By_SophiaHC 3 месяца назад
Hi. I am interested on learning how to get the PDF text and divide it into for example 5 sections. I want those 5 sections to be returned as a text. What do you recommend me to do in this case? Thanks!
@flutterflowexpert
@flutterflowexpert 3 месяца назад
you can have a loop inside the custom widget and divide your code in 5 sections.
@TheJulienlu
@TheJulienlu 8 месяцев назад
hey nice video i managed to get a pdf quite the same as you but i struggle with one thing i would like to send reciep by mail with a PDF file in it but how can i generate with dynamic contant the list of item the user have in is card ... i don't see who to tell the print to print a list item by items ? any clue ?
@flutterflowexpert
@flutterflowexpert 8 месяцев назад
You can save the dynamically generated list to your FB or SB storage and then provide a link to the pdf when you send the email. If you have any more question please join my Discord channel the link is in the description of the video.
@iAuslaender
@iAuslaender Год назад
Thank you very much for this Video. If I understood you correctly I could design a PDF document on a separate FluterFlow Site, then copy the code, past it at the state place, add pw. in front of all arguments needed and it should work. I will try it out and let you know :D Thanks again for your work
@flutterflowexpert
@flutterflowexpert Год назад
Yes exactly :)
@iAuslaender
@iAuslaender Год назад
@@flutterflowexpert thank you very much sir. I'm looking forward for more awesome videos of yours🙏🏽🙏🏽
@sobhe-omidorg1599
@sobhe-omidorg1599 Год назад
@@iAuslaender hi did you managed to do it and if you can share your code. where do you exactly add the code of pdf templete you make
@iAuslaender
@iAuslaender Год назад
@@sobhe-omidorg1599 👋 hi there. Unfortunately I was not able to it yet. I can share the code as soon as I'm done. But it could take me some time (3-4 Month xD )
@eminefy4081
@eminefy4081 Год назад
@@iAuslaender still waiting on the code, Senior man.
@chitzvalerio6396
@chitzvalerio6396 10 месяцев назад
Hi there, I'm still getting an error uri does not exist. Need help. Thank u!
@flutterflowexpert
@flutterflowexpert 10 месяцев назад
Please join my Discord server and share a screenshot
@ineteam
@ineteam Год назад
Does the code currently work? Integrated into a project and assigned to a button, it acts like a load but does not open anything
@flutterflowexpert
@flutterflowexpert Год назад
Yes the code should work. Please open the dev tools and let me know in the console if you get any errors
@ineteam
@ineteam Год назад
@@flutterflowexpert this is the error: dart_sdk.js:5397 Uncaught (in promise) Error: RangeError (index): Index out of range: no indices are valid: 0 at Object.throw_ [as throw] (dart_sdk.js:5397:11) at Object._checkValidIndex (dart_sdk.js:33641:17) at [dartx._get] (dart_sdk.js:32806:26) at input_buffer.InputBuffer.new._get (input_buffer.dart:44:39) at jpeg_data.JpegData.new.validate (jpeg_data.dart:64:17) at jpeg_decoder.JpegDecoder.new.isValidFile (jpeg_decoder.dart:18:50) at Object.findDecoderForData (formats.dart:116:10) at MemoryImage.new (image_provider.dart:101:24) at pdfInvoiceDownload (pdf_invoice_download.dart:43:20) at pdfInvoiceDownload.next () at dart_sdk.js:40691:33 at _RootZone.runUnary (dart_sdk.js:40524:59) at _FutureListener.thenAwait.handleValue (dart_sdk.js:35738:29) at handleValueCallback (dart_sdk.js:36299:49) at _Future._propagateToListeners (dart_sdk.js:36337:17) at [_completeWithValue] (dart_sdk.js:36172:23) at async._AsyncCallbackEntry.new.callback (dart_sdk.js:36206:35) at Object._microtaskLoop (dart_sdk.js:40821:13) at _startMicrotaskLoop (dart_sdk.js:40827:13) at dart_sdk.js:36561:9 throw_ @ dart_sdk.js:5397 _checkValidIndex @ dart_sdk.js:33641 [dartx._get] @ dart_sdk.js:32806 _get @ input_buffer.dart:44 validate @ jpeg_data.dart:64 isValidFile @ jpeg_decoder.dart:18 findDecoderForData @ formats.dart:116 new @ image_provider.dart:101 pdfInvoiceDownload @ pdf_invoice_download.dart:43 (anonymous) @ dart_sdk.js:40691 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_completeWithValue] @ dart_sdk.js:36172 (anonymous) @ dart_sdk.js:36206 _microtaskLoop @ dart_sdk.js:40821 _startMicrotaskLoop @ dart_sdk.js:40827 (anonymous) @ dart_sdk.js:36561 Promise.then (async) _scheduleImmediateWithPromise @ dart_sdk.js:36559 _scheduleImmediate @ dart_sdk.js:36565 _scheduleAsyncCallback @ dart_sdk.js:40842 _rootScheduleMicrotask @ dart_sdk.js:41024 scheduleMicrotask @ dart_sdk.js:40544 [_asyncCompleteWithValue] @ dart_sdk.js:36205 [_asyncComplete] @ dart_sdk.js:36187 complete @ dart_sdk.js:35621 (anonymous) @ binding.dart:372 runUnaryGuarded @ dart_sdk.js:40461 (anonymous) @ dart_sdk.js:175135 (anonymous) @ dart_sdk.js:175537 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_complete] @ dart_sdk.js:36164 (anonymous) @ dart_sdk.js:35300 internalCallback @ dart_sdk.js:27007 setTimeout (async) _isolate_helper.TimerImpl.new @ dart_sdk.js:27012 _createTimer @ dart_sdk.js:39467 createTimer @ dart_sdk.js:40547 new @ dart_sdk.js:39444 delayed @ dart_sdk.js:35298 replyToPlatformMessage @ dart_sdk.js:175535 (anonymous) @ dart_sdk.js:175171 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_completeWithValue] @ dart_sdk.js:36172 (anonymous) @ dart_sdk.js:36206 _microtaskLoop @ dart_sdk.js:40821 _startMicrotaskLoop @ dart_sdk.js:40827 (anonymous) @ dart_sdk.js:36561 Promise.then (async) _scheduleImmediateWithPromise @ dart_sdk.js:36559 _scheduleImmediate @ dart_sdk.js:36565 _scheduleAsyncCallback @ dart_sdk.js:40842 _rootScheduleMicrotask @ dart_sdk.js:41024 scheduleMicrotask @ dart_sdk.js:40544 [_asyncCompleteWithValue] @ dart_sdk.js:36205 [_asyncComplete] @ dart_sdk.js:36187 complete @ dart_sdk.js:35621 (anonymous) @ dart_sdk.js:197201 _checkAndCall @ dart_sdk.js:5600 dcall @ dart_sdk.js:5605 ret @ dart_sdk.js:62582 load (async) callMethod$ @ dart_sdk.js:62768 DomEventTargetExtension$124addEventListener @ dart_sdk.js:196019 domHttpRequest @ dart_sdk.js:197194 load @ dart_sdk.js:141779 runBody @ dart_sdk.js:40710 _async @ dart_sdk.js:40742 load @ dart_sdk.js:141776 [_sendPlatformMessage] @ dart_sdk.js:175170 sendPlatformMessage @ dart_sdk.js:175101 send @ binding.dart:370 load @ asset_bundle.dart:252 pdfInvoiceDownload @ pdf_invoice_download.dart:42 (anonymous) @ dart_sdk.js:40691 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_completeWithValue] @ dart_sdk.js:36172 (anonymous) @ dart_sdk.js:36206 _microtaskLoop @ dart_sdk.js:40821 _startMicrotaskLoop @ dart_sdk.js:40827 (anonymous) @ dart_sdk.js:36561 Promise.then (async) _scheduleImmediateWithPromise @ dart_sdk.js:36559 _scheduleImmediate @ dart_sdk.js:36565 _scheduleAsyncCallback @ dart_sdk.js:40842 _rootScheduleMicrotask @ dart_sdk.js:41024 scheduleMicrotask @ dart_sdk.js:40544 [_asyncCompleteWithValue] @ dart_sdk.js:36205 [_asyncComplete] @ dart_sdk.js:36187 complete @ dart_sdk.js:35621 (anonymous) @ browser_client.dart:68 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_complete] @ dart_sdk.js:36164 _cancelAndValue @ dart_sdk.js:40948 (anonymous) @ dart_sdk.js:21725 _checkAndCall @ dart_sdk.js:5600 dcall @ dart_sdk.js:5605 (anonymous) @ dart_sdk.js:109785 load (async) [_addEventListener] @ dart_sdk.js:65762 [dartx.addEventListener] @ dart_sdk.js:65750 [_tryResume] @ dart_sdk.js:109810 onData @ dart_sdk.js:109786 get first @ dart_sdk.js:21724 send @ browser_client.dart:66 (anonymous) @ dart_sdk.js:40691 runUnary @ dart_sdk.js:40524 handleValue @ dart_sdk.js:35738 handleValueCallback @ dart_sdk.js:36299 _propagateToListeners @ dart_sdk.js:36337 [_completeWithValue] @ dart_sdk.js:36172 (anonymous) @ dart_sdk.js:36206 _microtaskLoop @ dart_sdk.js:40821 _startMicrotaskLoop @ dart_sdk.js:40827 (anonymous) @ dart_sdk.js:36561 Promise.then (async) _scheduleImmediateWithPromise @ dart_sdk.js:36559 _scheduleImmediate @ dart_sdk.js:36565 _scheduleAsyncCallback @ dart_sdk.js:40842 _rootScheduleMicrotask @ dart_sdk.js:41024 scheduleMicrotask @ dart_sdk.js:40544 [_asyncCompleteWithValue] @ dart_sdk.js:36205 [_asyncComplete] @ dart_sdk.js:36187 complete @ dart_sdk.js:35621 [_complete] @ ticker.dart:402 ticker$.TickerFuture.complete @ ticker.dart:392 [_animateToInternal] @ animation_controller.dart:615 forward @ animation_controller.dart:467 confirm @ ink_ripple.dart:200 handleTap @ ink_well.dart:1089 invokeCallback @ recognizer.dart:253 handleTapUp @ tap.dart:627 [_checkUp] @ tap.dart:306 handlePrimaryPointer @ tap.dart:239 handleEvent @ recognizer.dart:615 [_dispatch] @ pointer_router.dart:98 (anonymous) @ pointer_router.dart:143 forEach @ dart_sdk.js:28056 [_dispatchEventToRoutes] @ pointer_router.dart:141 route @ pointer_router.dart:127 handleEvent @ binding.dart:460 dispatchEvent @ binding.dart:440 dispatchEvent @ binding.dart:336 [_handlePointerEventImmediately] @ binding.dart:395 handlePointerEvent @ binding.dart:357 [_flushPointerEventQueue] @ binding.dart:314 [_handlePointerDataPacket] @ binding.dart:295 invoke1 @ dart_sdk.js:200374 invokeOnPointerDataPacket @ dart_sdk.js:175073 [_onPointerData] @ dart_sdk.js:176047 (anonymous) @ dart_sdk.js:176592 (anonymous) @ dart_sdk.js:176532 loggedHandler @ dart_sdk.js:176223 (anonymous) @ dart_sdk.js:176141 _checkAndCall @ dart_sdk.js:5600 dcall @ dart_sdk.js:5605 ret @ dart_sdk.js:62582
@ineteam
@ineteam Год назад
Testing with the code, the error is solved after removing the image inserted in the pdf, I did not read the warning message. Thanks for answering,
@omaraskeeb473
@omaraskeeb473 9 месяцев назад
How to generate pages dynamically instead of one page. Please and thank you.
@flutterflowexpert
@flutterflowexpert 9 месяцев назад
You can use a loop for that.
@omaraskeeb473
@omaraskeeb473 9 месяцев назад
@@flutterflowexpert very sory, can you provide me with sample or a reference, I couldn't find documentation for pdf library
@flutterflowexpert
@flutterflowexpert 9 месяцев назад
@@omaraskeeb473 please join my Discord server where I can share code with you.
@nestorsantosparedes383
@nestorsantosparedes383 Год назад
Saludos Dimitar! podrias hacer un tutorial completo donde usas el codigo extendidio, es decir, como lo construyes y como lo pones en uso? porque el codigo que subiste es muy basico, y me interesa conocer concretamente es como hago para pasar los elementos de un carrito de compras hacia una factura, y hasta ahora no he encontrado un tutorial mejor que los que has subido sobre el tema... esperando me puedas apoyar! un grato saludo!
@flutterflowexpert
@flutterflowexpert Год назад
I defensively plan this in the future!
@careerfIT-co6nq
@careerfIT-co6nq 5 месяцев назад
Is it possible to convert existing HTML to PDF file (with same styling and fonts..)? I have tried using library htmltopdfwidgets, but I cannot make it work.
@flutterflowexpert
@flutterflowexpert 5 месяцев назад
yes best way is to use 3rd party tools for that and just use an API
@boulemzairnadhem6754
@boulemzairnadhem6754 Год назад
Great tuto, but when i pasted your code and did compilation, it said "uploadData' isn't defined , try to define it or import the library that defines it, so i hope you can suggeste a solution, thank you.
@flutterflowexpert
@flutterflowexpert Год назад
I will take a look. Did you include all the imports?
@boulemzairnadhem6754
@boulemzairnadhem6754 Год назад
@@flutterflowexpert yes i did
@flutterflowexpert
@flutterflowexpert Год назад
@@boulemzairnadhem6754 please write me in Discord, join my channel, it will be easier - discord.gg/BZVnTBVZ
@francoisleroux8344
@francoisleroux8344 11 месяцев назад
were you able to solve this, I have the same problem?
@kentthomas1045
@kentthomas1045 Год назад
Can you create a training where the user clicks 3 buttons and it uploads each button text to the pdf? So if I am selling three items, and they pick only 2 only those two will be on the final pdf to download?
@flutterflowexpert
@flutterflowexpert Год назад
You can simple do that with a list of strings and then use this list as a parameter and then display it in the PDF
@mee1511
@mee1511 Год назад
Thank you a lot for made this tutorial and sharing your code. I made it success but only issue I had is the pdf can’t render thai language. Can you suggest how to fix it.
@flutterflowexpert
@flutterflowexpert Год назад
This should be something with encoding. You need to add a Font which is supporting Thai. For example final font = pw.Font.ttf(await rootBundle.load('assets/THSarabunNew.ttf')); final para = pw.Paragraph( text: 'สวัสดีครับ ผมชื่อไนท์', style: pw.TextStyle(font: font) );
@mee1511
@mee1511 Год назад
@@flutterflowexpert Thank a lot, As I understand is font in FlutterFlow (which is can render Thai language) is separate with the PDF created because is no import port in the code you give us?. sorry I have never learn coding.
@amaux4370
@amaux4370 6 месяцев назад
Hi, someone know how to add a image to the pdf ? thanks
@flutterflowexpert
@flutterflowexpert 6 месяцев назад
Yes, you can use that video - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-YcHR_bMSIPw.html
@noosfera_It
@noosfera_It Год назад
Буду рад рекомендациям по тому как вылечить)
@KasperDefesche
@KasperDefesche Год назад
Great video Dimitar. I have only one problem. The body text is generated from an argument. In some instances, the body text exceeds the length of the page, which results in that the body text doesn't show at all. Do you know a way to fix this issue?
@flutterflowexpert
@flutterflowexpert Год назад
You can use condition and if the text is too big you can make it shorter and place "..." this will be my approach
@KasperDefesche
@KasperDefesche Год назад
That is an option, but what if I want the pdf to display the full text? @@flutterflowexpert
@brunotayrobiffe2088
@brunotayrobiffe2088 10 месяцев назад
If i put a list as argument and need more than 1 Page Can add pages auto?
@flutterflowexpert
@flutterflowexpert 10 месяцев назад
Yes you can generate dynamic pages using a loop.
@FGDNiz
@FGDNiz Год назад
Is there a way to put an image uploaded for the user on the PDF? Can be uploaded to Firebase or Local.
@flutterflowexpert
@flutterflowexpert Год назад
Yes. You can store the image in FB and then use it with a network path. the code is in the file in my github
@FGDNiz
@FGDNiz Год назад
@@flutterflowexpert thanks a lot! But i tried a lot of ways with FB and netImage and i can not find the way yet 🤯
@leandroosterne
@leandroosterne Год назад
A problem with import '../../backend/firebase_storage/storage.dart';
@flutterflowexpert
@flutterflowexpert Год назад
what exactly is the issue? Please refer to this issue github.com/bulgariamitko/flutterflowtutorials/issues/3
@ChrisS-oo6fl
@ChrisS-oo6fl Год назад
Part 2... printing (printing 5.10.1) Because what good is A PDF without the users ability to print it. (Yes it can be saved) Βut 99% of the time a user will need a pdf to be able to print. Making the PDF is like putting on your socks to go outside. You still need the shoes, sandals or flippy flops. Print in FF appears to be as difficult as creating the pdf.
@flutterflowexpert
@flutterflowexpert Год назад
You are not right, because using this code you should be able to download the file to your device and then open it with Adobe Reader for example using your phone and from there it is like printing a normal PDF file.
@JuanjoMelM
@JuanjoMelM Год назад
hi Dimitar, thanks, but, what about the buttom, i put it in actions, custom actions, but it doesn´t work...
@flutterflowexpert
@flutterflowexpert Год назад
Open the Dev console and look if you get any errors and you can join the Discord server and paste the error there.
@JuanjoMelM
@JuanjoMelM Год назад
@@flutterflowexpert it was the image, thanks a lot!!!
@alekvh1342
@alekvh1342 Год назад
Is it possible to insert a Synchfusion DataGrid as a custom widget in FF?
@flutterflowexpert
@flutterflowexpert Год назад
Yes. It is possible.
@alekvh1342
@alekvh1342 Год назад
@@flutterflowexpert Благодаря, ще пробвам👍. Аз наскоро започнах да използвам Flutter.
@flutterflowexpert
@flutterflowexpert Год назад
​@@alekvh1342 Ох, българин, можеш да се присъединиш към Discord канала ми. събирам всички БГ на едно място :) discord.gg/BYWhN4ju
@fespyanko
@fespyanko Год назад
Can I use that code to build an app that allow the user to create his pdf invoices and send to his clients?
@flutterflowexpert
@flutterflowexpert Год назад
yes you can. You just need parameters in your custom code
@fespyanko
@fespyanko Год назад
@@flutterflowexpert thank you Dimitar. Only I have to idea where to start. I'm a beginner, Im not even sure what a parameter is.
@flutterflowexpert
@flutterflowexpert Год назад
@@fespyanko This is a good start docs.flutterflow.io/data-and-backend/passing-data
@cannonjensen3303
@cannonjensen3303 Год назад
How can I join the discord server? I copied the code but I'm getting some errors in the console that I don't know how to handle
@flutterflowexpert
@flutterflowexpert Год назад
The link is in the description of the video discord.com/invite/ERDVFBkJmY
@cannonjensen3303
@cannonjensen3303 Год назад
​@@flutterflowexpert Thank you! Sorry I missed that in the description
@leandroosterne
@leandroosterne Год назад
Help-me... Error: Failed running flutter pub get... Because every version of flutter from sdk depends on meta 1.8.0 and xml >=6.3.0 depends on meta ^1.9.0, flutter from sdk is incompatible
@flutterflowexpert
@flutterflowexpert Год назад
I am about to release a video on how you can fix this issue
@JuanjoMelM
@JuanjoMelM Год назад
Hi Dimitar, Do you know where I can find material on how I can create a pdf with the code of a form, since when pasting the code it gives me errors
@flutterflowexpert
@flutterflowexpert Год назад
If you are talking about passing data from a TextField you can do that by adding Arguments to the code I have provided.
@JuanjoMelM
@JuanjoMelM Год назад
@@flutterflowexpert no, in fact, i´m trying to make a diploma and certificate for schools, so, that includes images, textbox, and other things that I designed in a form, but when I try to paste in your code, appears some errors.
@flutterflowexpert
@flutterflowexpert Год назад
@@JuanjoMelM Please join my Discord server and paste the code you are trying to implement and I will look into it.
@Neell0
@Neell0 Год назад
The code in the description is not that of the video
@flutterflowexpert
@flutterflowexpert Год назад
Yes the code is always up to date as Flutter and FF are updating as well. That's the reason.
@rmsanitair8743
@rmsanitair8743 10 месяцев назад
Does this still work in FF 4.0? because I am getting errors, and cannot even save the action. It says it's empty or cannot parse the action.
@flutterflowexpert
@flutterflowexpert 10 месяцев назад
I should work, yes. Please join my Discord server and share your code so I can review it.
@mohammudhassan264
@mohammudhassan264 Год назад
hello, can I use to add image from arguments
@flutterflowexpert
@flutterflowexpert Год назад
Yes. If they come from network path
@mohammudhassan264
@mohammudhassan264 Год назад
@@flutterflowexpert Thanks, I wanted to use from parameter, so that image can show specific data like the others strings Future idRequest( BuildContext context, String? personName, String? fatherName, String? birthOfPlace, String? dateOfBirth, String? gender, String? occupation, String? resident, String? martialStutus, String? issuedDate, String? registrationID, String? motherName,
@flutterflowexpert
@flutterflowexpert Год назад
@@mohammudhassan264 Yes you can do that.
@mohammudhassan264
@mohammudhassan264 Год назад
@@flutterflowexpertCan you assist me please
@flutterflowexpert
@flutterflowexpert Год назад
@@mohammudhassan264 Write me in the Discord channel discord.gg/cVd9dfXF
@fernanapp5538
@fernanapp5538 Год назад
Hi Dimitar. Thank you very much for your video. I tried the link for code, but it returns 404
@flutterflowexpert
@flutterflowexpert Год назад
sorry about that, now it should work
@fernandovazquez-miranda1279
@@flutterflowexpertNow it is fine!! Thank you very much
@gowthamshanmugam6988
@gowthamshanmugam6988 Год назад
how to add pages from base64 pdf string to this pdf
@flutterflowexpert
@flutterflowexpert Год назад
List bytes = base64Decode(base64PdfString); PDFDocument document = PDFDocument.fromBytes(bytes); document.addPage(base64PdfString);
@gowthamshanmugam6988
@gowthamshanmugam6988 Год назад
@@flutterflowexpert need syncfusionpdf import? I used that import but not works..which import i want to use? pls guide me
@flutterflowexpert
@flutterflowexpert Год назад
@@gowthamshanmugam6988 please find me in the community and write me there.
@noosfera_It
@noosfera_It Год назад
но оно к сожалению компилируется но не работает.
@flutterflowexpert
@flutterflowexpert Год назад
Check "Exclude from compilation" and try again
@mercantemercantevet1360
@mercantemercantevet1360 Год назад
@@flutterflowexpert i check this option, but it's not working yet, nothing happend
@developerkeyautomation6231
@developerkeyautomation6231 Год назад
Hi, thanks for sharing the code with us. I have a problem: I can't launch the app because it tells me that the custom actions are not compatible with the web version of the app. These are just some of the errors: Error: Command failed: flutter build web --web-renderer html --no-pub --no-version-check Target dart2js failed: Exception: lib/custom_code/actions/upload_any_file_type.dart:18:8: Error: Error when reading 'lib/flutter_flow/upload_media.dart': Error reading 'lib/flutter_flow/upload_media.dart' (No such file or directory) import '../../flutter_flow/upload_media.dart'; ^ lib/custom_code/actions/upload_any_file_type.dart:23:30: Error: Method not found: 'selectFile'. final selectedFile = await selectFile(allowedExtensions: fileType); ^^^^^^^^^^ ... lib/backend/firebase_storage/storage.dart:6:17: Info: Found this candidate, but the arguments don't match. Future uploadData(String path, Uint8List data) async { ^^^^^^^^^^ Error: Compilation failed. Exception: Failed to compile application for the Web. The three custom actions I created are the same as in your video: pdfInvoiceDownload, uploadAnyFileType, uploadFileToLocalAndWeb. Do you have any idea what the problem might be? Thanks in advance!
@flutterflowexpert
@flutterflowexpert Год назад
You need to exclude it from compilation
@developerkeyautomation6231
@developerkeyautomation6231 Год назад
@@flutterflowexpert Thank you for your reply! But unfortunately I still encounter the same problem, for the uploadAnyTypeFile function, whether I launch the app in Test mode or in Run mode. Are these functions not supported in the "online" version of the app on Flutterflow, but only on smartphones? I would really appreciate it if you could help me, even through other channels.
@flutterflowexpert
@flutterflowexpert Год назад
@@developerkeyautomation6231 No there should be supported I am using Test mode in my video. What is the exact error that you are getting?
@developerkeyautomation6231
@developerkeyautomation6231 Год назад
@@flutterflowexpert This is the complete error: Compilation Error in Custom Code Check custom code for errors: uploadAnyFileType Running "flutter pub get" in k_e_y_a_p_p_commerciale... Launching lib/main.dart on Web Server in debug mode... Waiting for connection from debug service on Web Server... lib/custom_code/actions/upload_any_file_type.dart:18:8: Error: Error when reading 'lib/flutter_flow/upload_media.dart': No such file or directory import '../../flutter_flow/upload_media.dart'; ^ lib/custom_code/actions/upload_any_file_type.dart:23:30: Error: Method not found: 'selectFile'. final selectedFile = await selectFile(allowedExtensions: fileType); ^^^^^^^^^^ lib/custom_code/actions/upload_any_file_type.dart:25:5: Error: Method not found: 'showUploadMessage'. showUploadMessage( ^^^^^^^^^^^^^^^^^ lib/custom_code/actions/upload_any_file_type.dart:39:7: Error: Method not found: 'showUploadMessage'. showUploadMessage( ^^^^^^^^^^^^^^^^^ lib/custom_code/actions/upload_any_file_type.dart:44:7: Error: Method not found: 'showUploadMessage'. showUploadMessage( ^^^^^^^^^^^^^^^^^ lib/custom_code/actions/upload_any_file_type.dart:36:22: Error: The setter 'filePath' isn't defined for the class 'FFAppState'. - 'FFAppState' is from 'package:k_e_y_a_p_p_commerciale/app_state.dart' ('lib/app_state.dart'). Try correcting the name to the name of an existing setter, or defining a setter or field named 'filePath'. FFAppState().filePath = downloadUrl; ^^^^^^^^ /home/.pub-cache/hosted/pub.dev/pdf-3.10.2/lib/src/svg/text.dart:63:29: Error: The getter 'value' isn't defined for the class 'XmlNode'. - 'XmlNode' is from 'package:xml/src/xml/nodes/node.dart' ('/home/.pub-cache/hosted/pub.dev/xml-6.2.2/lib/src/xml/nodes/node.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'. .map((node) => node.value) ^^^^^ Waiting for connection from debug service on Web Server... 76.7s Failed to compile application.
@flutterflowexpert
@flutterflowexpert Год назад
@@developerkeyautomation6231 This is custom action and not a function and you need to exclude it from compilation still
Далее
How Many Twins Can You Spot?
00:17
Просмотров 11 млн
Upload images from FlutterFlow to PDF
13:23
8 Free Design Resources to Build Your Next App
7:47
Flutter Tutorial - Create PDF With Images & Tables
10:07
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Como Gerar PDF no flutterflow - #flutterflow
16:03
Просмотров 2,3 тыс.
Flutter Tutorial - Create Invoice PDF Document
17:23
Просмотров 100 тыс.
Week 4: Layout basics & RecyclerView
47:28
Просмотров 104