背景
title: Text('AppBar Demo', style: TextStyle(color: Colors.red)), // 标题内容
// 末尾的操作按钮列表...PopupMenuItem(value: _abs[index], child: Text(_abs[index]))))
],
),
);
}
}
最后的效果图,未点击右侧按钮如左侧所示...,点击右侧按钮会弹出相应的 mune
?...,返回 T value,例如选中 `s` 则返回 s
this.onCanceled, // 未选择任何 menu,直接点击外侧使 mune 列表关闭的回调
this.tooltip,...(_abs.length, (index) => Tab(text: _abs[index], icon: Icon(Icons.android)))), // 导航内容列表
),