你可以试试这个选项:https : //stackoverflow.com/a/53211151/1534666
答案副本:我也在找这个,没找到。但我确实找到了在 TextStyle 中使用 4 个阴影的解决方法:
Text("Border test",
style: TextStyle(
inherit: true,
fontSize: 48.0,
color: Colors.pink,
shadows: [
Shadow( // bottomLeft
offset: Offset(-1.5, -1.5),
color: Colors.white
),
Shadow( // bottomRight
offset: Offset(1.5, -1.5),
color: Colors.white
),
Shadow( // topRight
offset: Offset(1.5, 1.5),
color: Colors.white
),
Shadow( // topLeft
offset: Offset(-1.5, 1.5),
color: Colors.white
),
]
),
);
Run Code Online (Sandbox Code Playgroud)
我也在 GitHub 上开了一个 Issue:https : //github.com/flutter/flutter/issues/24108
| 归档时间: |
|
| 查看次数: |
1538 次 |
| 最近记录: |