GitHub

    Table of contents

  1. 示例
  2. 相关链接

DefaultTextStyle

Edit this page

The text style to apply to descendant Text widgets without explicit style.

示例

DefaultTextStyle(
  style: TextStyle(
    fontSize: 60,
    color: Colors.blue,
    fontWeight: FontWeight.bold,
  ),
  child: Text('Flutter'),
)

相关链接