📜  在 Flutter 中更改 TextField 的边框颜色 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:59.735000             🧑  作者: Mango

代码示例2
Stack(
  children: [
    // Stroked text as border.
    Text(
      'Greetings, planet!',
      style: TextStyle(
        fontSize: 40,
        foreground: Paint()
          ..style = PaintingStyle.stroke
          ..strokeWidth = 6
          ..color = Colors.blue[700],
      ),
    ),
    // Solid text as fill.
    Text(
      'Greetings, planet!',
      style: TextStyle(
        fontSize: 40,
        color: Colors.grey[300],
      ),
    ),
  ],
)