minor page tweaks
This commit is contained in:
@@ -714,17 +714,37 @@ class _TractionPageState extends State<TractionPage> {
|
||||
final items = <PopupMenuEntry<_TractionMoreAction>>[];
|
||||
if (hasClassActions) {
|
||||
items.add(
|
||||
const PopupMenuItem(
|
||||
PopupMenuItem(
|
||||
value: _TractionMoreAction.classStats,
|
||||
child: Text('Class stats'),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
_showClassStatsPanel ? Icons.check : Icons.check_box_outline_blank,
|
||||
size: 18,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
const Text('Class stats'),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
if (hasClassActions) {
|
||||
items.add(
|
||||
const PopupMenuItem(
|
||||
PopupMenuItem(
|
||||
value: _TractionMoreAction.classLeaderboard,
|
||||
child: Text('Class leaderboard'),
|
||||
child: Row(
|
||||
children: [
|
||||
Icon(
|
||||
_showClassLeaderboardPanel
|
||||
? Icons.check
|
||||
: Icons.check_box_outline_blank,
|
||||
size: 18,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
const Text('Class leaderboard'),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user