- Flutter Widget Livebook

Baseline

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

Example

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,
    ),
  ),
)

Related Links

  1. Example
  2. Related Links