fix: code editor tool bar (#933)
This commit is contained in:
@@ -7,6 +7,8 @@ import 'package:server_box/data/res/store.dart';
|
||||
class ConnectionStatsPage extends StatefulWidget {
|
||||
const ConnectionStatsPage({super.key});
|
||||
|
||||
static const route = AppRouteNoArg(page: ConnectionStatsPage.new, path: '/server/conn_stats');
|
||||
|
||||
@override
|
||||
State<ConnectionStatsPage> createState() => _ConnectionStatsPageState();
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import 'package:server_box/data/provider/server/all.dart';
|
||||
import 'package:server_box/data/provider/server/single.dart';
|
||||
import 'package:server_box/data/res/build_data.dart';
|
||||
import 'package:server_box/data/res/store.dart';
|
||||
import 'package:server_box/view/page/server/connection_stats.dart';
|
||||
import 'package:server_box/view/page/server/detail/view.dart';
|
||||
import 'package:server_box/view/page/server/edit/edit.dart';
|
||||
import 'package:server_box/view/page/setting/entry.dart';
|
||||
|
||||
@@ -42,9 +42,9 @@ final class _TopBar extends ConsumerWidget implements PreferredSizeWidget {
|
||||
}
|
||||
final total = order.length;
|
||||
final connectionText = '$connected/$total ${context.l10n.conn}';
|
||||
leading = Text(
|
||||
connectionText,
|
||||
style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
|
||||
leading = InkWell(
|
||||
onTap: () => ConnectionStatsPage.route.go(context),
|
||||
child: Text(connectionText, style: const TextStyle(fontSize: 16, fontWeight: FontWeight.w600)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -89,9 +89,8 @@ extension _App on _AppSettingsPageState {
|
||||
return ListTile(
|
||||
leading: const Icon(Icons.colorize),
|
||||
title: Text(libL10n.primaryColorSeed),
|
||||
trailing: _setting.colorSeed.listenable().listenVal((val) {
|
||||
final c = Color(val);
|
||||
return ClipOval(child: Container(color: c, height: 27, width: 27));
|
||||
trailing: _setting.colorSeed.listenable().listenVal((_) {
|
||||
return ClipOval(child: Container(color: UIs.primaryColor, height: 27, width: 27));
|
||||
}),
|
||||
onTap: () async {
|
||||
final ctrl = TextEditingController(text: UIs.primaryColor.toHex);
|
||||
@@ -137,7 +136,6 @@ extension _App on _AppSettingsPageState {
|
||||
UIs.colorSeed = color;
|
||||
_setting.colorSeed.put(color.value255);
|
||||
context.pop();
|
||||
Future.delayed(Durations.medium1, RNodes.app.notify);
|
||||
}
|
||||
|
||||
Widget _buildMaxRetry() {
|
||||
|
||||
@@ -46,11 +46,7 @@ extension _Server on _AppSettingsPageState {
|
||||
subtitle: Text(l10n.connectionStatsDesc),
|
||||
trailing: const Icon(Icons.keyboard_arrow_right),
|
||||
onTap: () {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (context) => const ConnectionStatsPage(),
|
||||
),
|
||||
);
|
||||
ConnectionStatsPage.route.go(context);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user