- Flutter Widget Livebook

Tooltip

A material design tooltip.

示例

Row(
  mainAxisSize: MainAxisSize.min,
  children: <Widget>[
    Tooltip(
      message: 'High quality',
      child: IconButton(
        icon: Icon(Icons.high_quality),
        onPressed: () {
          /** */
        },
      ),
    ),
    Tooltip(
      message: 'Full screen',
      child: IconButton(
        icon: Icon(Icons.fullscreen),
        onPressed: () {
          /** */
        },
      ),
    ),
    Tooltip(
      message: 'Filter',
      child: IconButton(
        icon: Icon(Icons.filter),
        onPressed: () {
          /** */
        },
      ),
    )
  ],
)

相关链接

  1. 示例
  2. 相关链接