安卓
iOS
显示菜单图标(基于平台):
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),
),
],
),
);
}