fix: 移除控制台页右上角重复的玩家管理入口(与底部玩家页签重复)
This commit is contained in:
1 parent
6757e0d985
commit
88e4f43ab1
1 file changed
+1
-11
@@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import '../../core/utils/command_preset_service.dart';
|
import '../../core/utils/command_preset_service.dart';
|
||||||
import '../../core/utils/rcon_client.dart';
|
import '../../core/utils/rcon_client.dart';
|
||||||
import '../player_management/player_list_page.dart';
|
|
||||||
import '../../core/l10n/strings.dart';
|
import '../../core/l10n/strings.dart';
|
||||||
|
|
||||||
class ConsolePage extends StatefulWidget {
|
class ConsolePage extends StatefulWidget {
|
||||||
@@ -150,16 +149,7 @@ class _ConsolePageState extends State<ConsolePage> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: T('服务器控制台'),
|
title: T('服务器控制台'),
|
||||||
actions: [
|
actions: const [],
|
||||||
IconButton(
|
|
||||||
icon: const Icon(Icons.people_outline),
|
|
||||||
tooltip: S.t('玩家管理'),
|
|
||||||
onPressed: () => Navigator.push(
|
|
||||||
context,
|
|
||||||
MaterialPageRoute(builder: (_) => PlayerListPage(rconClient: widget.rconClient)),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in new issue
Block a user