new: tag rename
This commit is contained in:
@@ -76,6 +76,7 @@ class _PingPageState extends State<PingPage>
|
||||
),
|
||||
),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
heroTag: 'ping',
|
||||
onPressed: () {
|
||||
try {
|
||||
doPing();
|
||||
|
||||
@@ -7,7 +7,6 @@ import 'package:toolbox/data/model/server/disk.dart';
|
||||
import 'package:toolbox/data/model/server/dist.dart';
|
||||
import 'package:toolbox/data/model/server/memory.dart';
|
||||
import 'package:toolbox/data/model/server/temp.dart';
|
||||
import 'package:toolbox/data/res/misc.dart';
|
||||
|
||||
import '../../../core/extension/numx.dart';
|
||||
import '../../../data/model/server/net_speed.dart';
|
||||
@@ -15,6 +14,7 @@ import '../../../data/model/server/server.dart';
|
||||
import '../../../data/model/server/server_status.dart';
|
||||
import '../../../data/provider/server.dart';
|
||||
import '../../../data/res/color.dart';
|
||||
import '../../../data/res/default.dart';
|
||||
import '../../../data/res/ui.dart';
|
||||
import '../../../data/store/setting.dart';
|
||||
import '../../../locator.dart';
|
||||
|
||||
@@ -153,6 +153,7 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
|
||||
}),
|
||||
s: _s,
|
||||
tagSuggestions: [..._serverProvider.tags],
|
||||
onRenameTag: _serverProvider.renameTag,
|
||||
),
|
||||
width7,
|
||||
Row(
|
||||
@@ -225,6 +226,7 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
|
||||
|
||||
Widget _buildFAB() {
|
||||
return FloatingActionButton(
|
||||
heroTag: 'server',
|
||||
child: const Icon(Icons.send),
|
||||
onPressed: () async {
|
||||
if (_ipController.text == '') {
|
||||
|
||||
@@ -74,6 +74,7 @@ class _ServerPageState extends State<ServerPage>
|
||||
'Add server info page',
|
||||
).go(context),
|
||||
tooltip: _s.addAServer,
|
||||
heroTag: 'server',
|
||||
child: const Icon(Icons.add),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -65,6 +65,7 @@ class _SnippetEditPageState extends State<SnippetEditPage>
|
||||
|
||||
Widget _buildFAB() {
|
||||
return FloatingActionButton(
|
||||
heroTag: 'snippet',
|
||||
child: const Icon(Icons.send),
|
||||
onPressed: () {
|
||||
final name = _nameController.text;
|
||||
|
||||
@@ -28,9 +28,10 @@ class _SnippetListPageState extends State<SnippetListPage> {
|
||||
return Scaffold(
|
||||
body: _buildBody(),
|
||||
floatingActionButton: FloatingActionButton(
|
||||
heroTag: 'snippet',
|
||||
child: const Icon(Icons.add),
|
||||
onPressed: () =>
|
||||
AppRoute(const SnippetEditPage(), 'snippet edit page').go(context),
|
||||
AppRoute(const SnippetEditPage(), 'snippet edit page',).go(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user