I searched for the shadow option in TextStyle, but I didn't find it. So I ask: how can I add shadow to the text in flutter? Is it possible?
Example:
new Text(
"asd"
style: new TextStyle(
//add shadow?
));
dartfluttershadowtext;
I searched for the shadow option in TextStyle, but I didn't find it. So I ask: how can I add shadow to the text in flutter? Is it possible?
Example:
new Text(
"asd"
style: new TextStyle(
//add shadow?
));
Best Answer
Text shadows are now a property of
TextStyle
as of this commitTo enable text shadows, please make sure you are on an up-to-date version of Flutter (
$ flutter upgrade
) and provide aList<Shadow>
toTextStyle.shadows
:Keep in mind that shadows will be drawn in the order provided.