扑图标3点

时间:2019-10-01 15:20:58

标签: flutter material-design

Flutter的材料库中是否有3个点图标

Icon(Icons.three_dots_overflow),

er

2 个答案:

答案 0 :(得分:2)

是的,more_horiz:

    Icon(Icons.more_horiz);

enter image description here

和more_vert:

    Icon(Icons.more_vert);

enter image description here

答案 1 :(得分:0)

安卓

enter image description here

iOS

enter image description here


显示菜单图标(基于平台):

import 'dart:io';
// ...

@override
Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(
      title: Text('AppBar'),
      actions: [
        IconButton(
          onPressed: () {},
          icon: Icon(Platform.isAndroid ? Icons.more_vert : Icons.more_horiz),
        ),
      ],
    ),
  );
}