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

libtxt: Text shadow #3402

Closed
cooler-king opened this issue Apr 19, 2016 · 14 comments
Closed

libtxt: Text shadow #3402

cooler-king opened this issue Apr 19, 2016 · 14 comments
Assignees
Labels
c: new feature Nothing broken; request for a new capability customer: dream (g3) customer: fuchsia engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels.
Milestone

Comments

@cooler-king
Copy link

Add support for text shadowing as in CSS.

Or point me to it if it already exists; doesn't seem to be in TextStyle or TextDecoration.

@sethladd sethladd added the framework flutter/packages/flutter repository. See also f: labels. label Apr 19, 2016
@abarth abarth added c: new feature Nothing broken; request for a new capability engine flutter/engine repository. See also e: labels. labels Apr 19, 2016
@abarth abarth added this to the Next milestone Apr 24, 2016
@Hixie Hixie modified the milestones: Flutter 1.0, Next Aug 1, 2016
@cooler-king
Copy link
Author

So this won't be addressed any time soon?

@abarth
Copy link
Contributor

abarth commented Sep 26, 2016

Looks like this is currently prioritized as something we want in the intermediate term but not something we need immediately.

@Hixie Hixie changed the title Text shadow libtxt: Text shadow Jan 10, 2018
@Hixie Hixie modified the milestones: 5: Make Hixie proud, 6: Future Future Jan 10, 2018
@dvdwasibi
Copy link
Contributor

Customer Pink requires this feature.

@Hixie
Copy link
Contributor

Hixie commented Jan 29, 2018

@dvdwasibi You can fake it for now by blurring one text widget at on offset, then putting another on top.

@collinjackson
Copy link
Contributor

Here's an example of the workaround Ian mentioned.

https://stackoverflow.com/a/44324381/1463116

@Hixie Hixie modified the milestones: Future, Declined Customer Request May 8, 2018
@Hixie
Copy link
Contributor

Hixie commented May 29, 2018

The example uses BackdropFilter, which is likely quite slow. We should ideally implement ImageFilter (#13489) and then use that.

@eseidelGoogle
Copy link
Contributor

customer: dream is also interested in this. We'll need to discuss their needs in more detail.

@denpalrius
Copy link

Eagerly hopeful for an easier way to achieve this, other than the BackdropFilter option

@sir-boformer
Copy link
Contributor

Also waiting for this!

@morfinismo
Copy link

This is indispensable!

@rockingdice
Copy link

Need this really. Not a workaround but a solid feature.

@GaryQian GaryQian self-assigned this Sep 26, 2018
@GaryQian
Copy link
Contributor

PR:
#22449 (framework)
flutter/engine#6385 (engine)

@GaryQian GaryQian added this to the bucket10 milestone Sep 28, 2018
@GaryQian GaryQian added the waiting for PR to land (fixed) A fix is in flight label Oct 16, 2018
@GaryQian
Copy link
Contributor

GaryQian commented Oct 17, 2018

Text shadows have landed with bdc3dda

To enable shadows, provide a List<Shadow> to TextStyle.shadows:

import 'dart:ui';

...

Text(
  'Hello, world!',
  style: TextStyle(
    shadows: <Shadow>[
      Shadow(
        offset: Offset(10.0, 10.0),
        blurRadius: 3.0,
        color: Color.fromARGB(255, 0, 0, 0),
      ),
      Shadow(
        offset: Offset(10.0, 10.0),
        blurRadius: 8.0,
        color: Color.fromARGB(125, 0, 0, 255),
      ),
    ],
  ),
),

...

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability customer: dream (g3) customer: fuchsia engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

No branches or pull requests