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

customization for text background #66740

Open
arjendevos opened this issue Sep 26, 2020 · 1 comment
Open

customization for text background #66740

arjendevos opened this issue Sep 26, 2020 · 1 comment
Labels
a: typography Text rendering, possibly libtxt. engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. new feature Nothing broken; request for a new capability. P5 Priority 5 issue (default for new feature requests; things we'd like to work on) passed first triage tests are present, the PR follows the PR template, no obvious coding errors proposal A detailed proposal for a change to Flutter would be a good package Separate Flutter package should be made for this.

Comments

@arjendevos
Copy link

arjendevos commented Sep 26, 2020

Use case

My goal is to make a background with text like in Instagram stories or Tiktok. I can archive this if i wrap the text in a container but this doesn't work if i have multiple lines. The container becomes a box and doesn't wrap around the text as big the line is. So i used the background property of text. This however doesn't have any customization other than color.

Proposal

My proposel is to make 2 new features on the TextStyle from text widget. Padding and borderradius.

Here is the result i want to archive:

WhatsApp Image 2020-09-25 at 19 54 13

@pedromassangocode pedromassangocode added a: typography Text rendering, possibly libtxt. engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. proposal A detailed proposal for a change to Flutter new feature Nothing broken; request for a new capability. would be a good package Separate Flutter package should be made for this. labels Sep 28, 2020
@pedromassangocode pedromassangocode added the passed first triage tests are present, the PR follows the PR template, no obvious coding errors label Nov 3, 2020
@zanderso zanderso added the P5 Priority 5 issue (default for new feature requests; things we'd like to work on) label Dec 2, 2020
@zanderso
Copy link
Member

zanderso commented Dec 2, 2020

/cc @GaryQian @jason-simmons To check whether/how this should be done with existing APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: typography Text rendering, possibly libtxt. engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. new feature Nothing broken; request for a new capability. P5 Priority 5 issue (default for new feature requests; things we'd like to work on) passed first triage tests are present, the PR follows the PR template, no obvious coding errors proposal A detailed proposal for a change to Flutter would be a good package Separate Flutter package should be made for this.
Projects
None yet
Development

No branches or pull requests

3 participants