GitHub

    Table of contents

  1. 示例
  2. 相关链接

Baseline

Edit this page

A widget that positions its child according to the child's baseline.

示例

Center(
  child: Container(
    color: Colors.blue,
    height: 120.0,
    width: 120.0,
    child: Baseline(
      child: Container(
        color: Colors.red,
        height: 60.0,
        width: 60.0,
      ),
      baseline: 20.0,
      baselineType: TextBaseline.alphabetic,
    ),
  ),
)

相关链接