Giter Site home page Giter Site logo

joseph-grabinger / flutter_to_pdf Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 12.0 1.34 MB

Create PDFs but work with normal Flutter Widgets.

License: MIT License

Kotlin 0.06% Ruby 1.31% Swift 0.94% Objective-C 0.30% Dart 74.52% CMake 9.48% C++ 10.79% C 0.95% HTML 0.86% Java 0.26% Shell 0.53%
dart flutter pdf-generation

flutter_to_pdf's People

Contributors

dunef-com avatar joseph-grabinger avatar leventkantaroglu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flutter_to_pdf's Issues

Cant test the sample on web

Not sure if this is related to the other issue on android, but on web nothing happens after i press any of the buttons.

It seems like the function to generate the pdf is running on the background (because the mouse stucks on the hand pointer for some time) but the file isnt created.

image

Add TextField support

Add TextField Support.

TextField should be converted to Text, with some extra options regarding TextStyle of the converted Text.

Replace deprecated usage of `textScaleFactor`

textScaleFactor is deprecated and shouldn't be used.
Use textScaler instead. Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support.
This feature was deprecated after v3.12.0-2.0.pre

Used in:

  • lib/widgets/text.dart:19:26
  • test/widget_basic_test.dart:197:38
  • test/widget_basic_test.dart:225:39
  • test/widget_basic_test.dart:230:40
  • test/widget_basic_test.dart:235:42
  • test/widget_basic_test.dart:240:43
  • test/widget_container_test.dart:99:15

add PageFormatOptions

PageFormatOptions should be a class giving the user option about the exported page size and format.

Following functionalities are needed:

  • export to known formats (DIN A4, A3, etc.)
  • export to current screen size
  • export to a fixed size (height, width)

add button support

Add basic button support, since FlatButton exists as a widget in the pdf package.

Cant test the sample on android

Tried to run the package sample on android, but got this error:
image

It happened after i pressed "export as static" button.

Couldn't also export as interactive

Add Image support

Support Images.

  • DecorationImage
  • NetworkImage
  • AssetImage
  • ImageProvider

Request for Custom Font Support

the package supports only 6 fonts which are exist in pdf package, it would make the package more complete if it was able to load custom font as well.

Use BuildContext

Use BuildContext so normal Flutter widgets can be used.
These widgets then have to be mapped to the corresponding PDF-Widgets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.