Skip to content
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

How can I use rich text in MultiPage() ? #33

Closed
keshav1611 opened this issue Feb 13, 2019 · 6 comments
Closed

How can I use rich text in MultiPage() ? #33

keshav1611 opened this issue Feb 13, 2019 · 6 comments

Comments

@keshav1611
Copy link

I am creating a pdf in which I want a part of the text to be Bold. It can be done using rich text, but I guess support for rich text is not given in this plugin. Can you help me with that.

I tried to use multiple Text widgets but then the second Text widget goes to another line. Please tell me how to solve this.

Expected:
I want something like this.

What I get:
I am getting
something
like this

@DavBfr
Copy link
Owner

DavBfr commented Feb 13, 2019

I guess you will have to write a RichText widget with Span child having a different font style.

@keshav1611
Copy link
Author

But there is no RichText widget in import 'package:pdf/widgets.dart'.

@DavBfr
Copy link
Owner

DavBfr commented Feb 16, 2019

Yes, you can contribute and create it.

@DavBfr
Copy link
Owner

DavBfr commented Feb 19, 2019

I'm working on it

@keshav1611
Copy link
Author

Ok, thanks. Please consider widgets like Opacity also.

@DavBfr
Copy link
Owner

DavBfr commented Feb 21, 2019

That's fixed in this repository, will be part of version 1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants