Merge remote-tracking branch 'origin/lollipopkit/issue727'

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-04-25 18:33:36 +08:00
26 changed files with 62 additions and 82 deletions

View File

@@ -97,23 +97,23 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/watch_connectivity/ios" :path: ".symlinks/plugins/watch_connectivity/ios"
SPEC CHECKSUMS: SPEC CHECKSUMS:
app_links: e7a6750a915a9e161c58d91bc610e8cd1d4d0ad0 app_links: 76b66b60cc809390ca1ad69bfd66b998d2387ac7
camera_avfoundation: dd002b0330f4981e1bbcb46ae9b62829237459a4 camera_avfoundation: 04b44aeb14070126c6529e5ab82cc7c9fca107cf
file_picker: c79185e70b9b45728cde2a8d8da454e0cb43f287 file_picker: fb04e739ae6239a76ce1f571863a196a922c87d4
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_inappwebview_ios: 6f63631e2c62a7c350263b13fa5427aedefe81d4 flutter_inappwebview_ios: b89ba3482b96fb25e00c967aae065701b66e9b99
flutter_native_splash: e8a1e01082d97a8099d973f919f57904c925008a flutter_native_splash: c32d145d68aeda5502d5f543ee38c192065986cf
icloud_storage: d9ac7a33ced81df08ba7ea1bf3099cc0ee58f60a icloud_storage: e55639f0c0d7cb2b0ba9c0b3d5968ccca9cd9aa2
local_auth_darwin: 66e40372f1c29f383a314c738c7446e2f7fdadc3 local_auth_darwin: 553ce4f9b16d3fdfeafce9cf042e7c9f77c1c391
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94 OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4 package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
plain_notification_token: b36467dc91939a7b6754267c701bbaca14996ee1 plain_notification_token: 047876b9d80a5b93565ddcc13a487a7e7b906f7d
share_plus: 8b6f8b3447e494cca5317c8c3073de39b3600d1f share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
wakelock_plus: 78ec7c5b202cab7761af8e2b2b3d0671be6c4ae1 wakelock_plus: 04623e3f525556020ebd4034310f20fe7fda8b49
watch_connectivity: 715eb484685e05846eab74795348a44bb2809b82 watch_connectivity: 88e5bea25b473e66ef8d3f960954d154ed0356d6
PODFILE CHECKSUM: ec6ef69056f066e8b21a3391082f23b5ad2d37f8 PODFILE CHECKSUM: ec6ef69056f066e8b21a3391082f23b5ad2d37f8

View File

@@ -48,6 +48,7 @@
ignoresPersistentStateOnLaunch = "NO" ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES" debugDocumentVersioning = "YES"
debugServiceExtension = "internal" debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES"> allowLocationSimulation = "YES">
<BuildableProductRunnable <BuildableProductRunnable
runnableDebuggingMode = "0"> runnableDebuggingMode = "0">

View File

@@ -117,7 +117,7 @@ class _EditorPageState extends State<EditorPage> {
} }
PreferredSizeWidget _buildAppBar() { PreferredSizeWidget _buildAppBar() {
return AppBar( return CustomAppBar(
centerTitle: true, centerTitle: true,
title: TwoLineText( title: TwoLineText(
up: widget.args?.title ?? up: widget.args?.title ??

View File

@@ -9,26 +9,6 @@ final class _AppBar extends StatelessWidget implements PreferredSizeWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return SizedBox( return SizedBox(
height: preferredSize.height, height: preferredSize.height,
child: isIOS ? Center(child: _buildLogo()) : null,
);
}
Widget _buildLogo() {
final text = Text(
BuildData.name,
style: TextStyle(
fontSize: 10,
fontWeight: FontWeight.bold,
color: UIs.primaryColor.isBrightColor ? Colors.black : Colors.white,
),
);
return Container(
decoration: BoxDecoration(
color: UIs.primaryColor,
borderRadius: BorderRadius.circular(11),
),
padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 1),
child: text,
); );
} }

View File

@@ -38,7 +38,7 @@ class _IPerfPageState extends State<IPerfPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: const Text('iperf'), title: const Text('iperf'),
), ),
body: _buildBody(), body: _buildBody(),

View File

@@ -78,7 +78,7 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage> {
); );
} }
AppBar _buildAppBar() { CustomAppBar _buildAppBar() {
final actions = [ final actions = [
IconButton( IconButton(
tooltip: libL10n.delete, tooltip: libL10n.delete,
@@ -101,7 +101,7 @@ class _PrivateKeyEditPageState extends State<PrivateKeyEditPage> {
icon: const Icon(Icons.delete), icon: const Icon(Icons.delete),
) )
]; ];
return AppBar( return CustomAppBar(
title: Text(libL10n.edit), title: Text(libL10n.edit),
actions: widget.pki == null ? null : actions, actions: widget.pki == null ? null : actions,
); );

View File

@@ -123,7 +123,7 @@ class _ProcessPageState extends State<ProcessPage> {
); );
} }
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
centerTitle: true, centerTitle: true,
title: TwoLineText(up: widget.spi.name, down: l10n.process), title: TwoLineText(up: widget.spi.name, down: l10n.process),
actions: actions, actions: actions,

View File

@@ -60,7 +60,7 @@ final class _PvePageState extends State<PvePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: TwoLineText(up: 'PVE', down: widget.args.spi.name), title: TwoLineText(up: 'PVE', down: widget.args.spi.name),
actions: [ actions: [
ValBuilder( ValBuilder(

View File

@@ -86,7 +86,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
final s = widget.spi.server; final s = widget.spi.server;
if (s == null) { if (s == null) {
return Scaffold( return Scaffold(
appBar: AppBar(), appBar: CustomAppBar(),
body: Center(child: Text(libL10n.empty)), body: Center(child: Text(libL10n.empty)),
); );
} }
@@ -119,8 +119,8 @@ class _ServerDetailPageState extends State<ServerDetailPage>
); );
} }
AppBar _buildAppBar(Server si) { CustomAppBar _buildAppBar(Server si) {
return AppBar( return CustomAppBar(
title: Hero( title: Hero(
tag: 'home_card_title_${si.spi.id}', tag: 'home_card_title_${si.spi.id}',
transitionOnUserGestures: true, transitionOnUserGestures: true,

View File

@@ -110,7 +110,7 @@ class _ServerEditPageState extends State<ServerEditPage> with AfterLayoutMixin {
return GestureDetector( return GestureDetector(
onTap: () => _focusScope.unfocus(), onTap: () => _focusScope.unfocus(),
child: Scaffold( child: Scaffold(
appBar: AppBar(title: Text(libL10n.edit), actions: actions), appBar: CustomAppBar(title: Text(libL10n.edit), actions: actions),
body: _buildForm(), body: _buildForm(),
floatingActionButton: _buildFAB(), floatingActionButton: _buildFAB(),
), ),

View File

@@ -17,7 +17,7 @@ class _AndroidSettingsPageState extends State<AndroidSettingsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: const Text('Android')), appBar: CustomAppBar(title: const Text('Android')),
body: ListView( body: ListView(
padding: const EdgeInsets.symmetric(horizontal: 17), padding: const EdgeInsets.symmetric(horizontal: 17),
children: [ children: [

View File

@@ -27,7 +27,7 @@ class _IOSSettingsPageState extends State<IOSSettingsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: const Text('iOS')), appBar: CustomAppBar(title: const Text('iOS')),
body: ListView( body: ListView(
padding: const EdgeInsets.symmetric(horizontal: 17), padding: const EdgeInsets.symmetric(horizontal: 17),
children: [ children: [

View File

@@ -19,8 +19,8 @@ abstract final class PlatformPublicSettings {
title: Text(libL10n.bioAuth), title: Text(libL10n.bioAuth),
subtitle: can == true subtitle: can == true
? null ? null
: const Text( : Text(
'Not available', libL10n.notExistFmt(libL10n.bioAuth),
style: UIs.textGrey, style: UIs.textGrey,
), ),
trailing: can == true trailing: can == true

View File

@@ -17,7 +17,7 @@ class _ServerDetailOrderPageState extends State<ServerDetailOrderPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(l10n.serverDetailOrder)), appBar: CustomAppBar(title: Text(l10n.serverDetailOrder)),
body: _buildBody(), body: _buildBody(),
); );
} }

View File

@@ -19,7 +19,7 @@ class _ServerDetailOrderPageState extends State<ServerFuncBtnsOrderPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(l10n.sequence)), appBar: CustomAppBar(title: Text(l10n.sequence)),
body: _buildBody(), body: _buildBody(),
); );
} }

View File

@@ -16,7 +16,7 @@ class _ServerOrderPageState extends State<ServerOrderPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(l10n.serverOrder)), appBar: CustomAppBar(title: Text(l10n.serverOrder)),
body: _buildBody(), body: _buildBody(),
); );
} }

View File

@@ -17,7 +17,7 @@ class _SSHVirtKeySettingPageState extends State<SSHVirtKeySettingPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(l10n.editVirtKeys)), appBar: CustomAppBar(title: Text(l10n.editVirtKeys)),
body: Column( body: Column(
children: [ children: [
Padding( Padding(

View File

@@ -38,7 +38,7 @@ class _SnippetEditPageState extends State<SnippetEditPage>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: Text(libL10n.edit), title: Text(libL10n.edit),
actions: _buildAppBarActions(), actions: _buildAppBarActions(),
), ),

View File

@@ -11,7 +11,7 @@ class SnippetResultPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text(l10n.result)), appBar: CustomAppBar(title: Text(l10n.result)),
body: _buildBody(), body: _buildBody(),
); );
} }

View File

@@ -53,7 +53,7 @@ class _LocalFilePageState extends State<LocalFilePage>
super.build(context); super.build(context);
final title = _path.path.fileNameGetter ?? libL10n.file; final title = _path.path.fileNameGetter ?? libL10n.file;
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: AnimatedSwitcher( title: AnimatedSwitcher(
duration: Durations.short3, duration: Durations.short3,
child: Text(title, key: ValueKey(title)), child: Text(title, key: ValueKey(title)),

View File

@@ -62,7 +62,7 @@ class _SftpPageState extends State<SftpPage> with AfterLayoutMixin {
if (isDesktop) children.add(_buildRefreshBtn()); if (isDesktop) children.add(_buildRefreshBtn());
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: TwoLineText(up: 'SFTP', down: widget.spi.name), title: TwoLineText(up: 'SFTP', down: widget.spi.name),
actions: children, actions: children,
), ),

View File

@@ -16,7 +16,7 @@ class _SftpMissionPageState extends State<SftpMissionPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: Text(l10n.mission, style: UIs.text18), title: Text(l10n.mission, style: UIs.text18),
), ),
body: _buildBody(), body: _buildBody(),

View File

@@ -42,7 +42,7 @@ final class _SystemdPageState extends State<SystemdPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: CustomAppBar(
title: const Text('Systemd'), title: const Text('Systemd'),
actions: isDesktop actions: isDesktop
? [Btn.icon(icon: const Icon(Icons.refresh), onTap: _pro.getUnits)] ? [Btn.icon(icon: const Icon(Icons.refresh), onTap: _pro.getUnits)]

View File

@@ -653,7 +653,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox; PRODUCT_BUNDLE_IDENTIFIER = com.lollipopkit.toolbox;
PRODUCT_NAME = "Server Box"; PRODUCT_NAME = "Server Box";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = serverbox; "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = serverbox_lkmm;
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
}; };
name = Release; name = Release;

View File

@@ -66,10 +66,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: archive name: archive
sha256: "0c64e928dcbefddecd234205422bcfc2b5e6d31be0b86fef0d0dd48d7b4c9742" sha256: "7dcbd0f87fe5f61cb28da39a1a8b70dbc106e2fe0516f7836eb7bb2948481a12"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.0.4" version: "4.0.5"
args: args:
dependency: transitive dependency: transitive
description: description:
@@ -82,10 +82,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: asn1lib name: asn1lib
sha256: "068190d6c99c436287936ba5855af2e1fa78d8083ae65b4db6a281780da727ae" sha256: e02d018628c870ef2d7f03e33f9ad179d89ff6ec52ca6c56bcb80bcef979867f
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.6.0" version: "1.6.2"
async: async:
dependency: transitive dependency: transitive
description: description:
@@ -186,10 +186,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: camera_avfoundation name: camera_avfoundation
sha256: "3057ada0b30402e3a9b6dffec365c9736a36edbf04abaecc67c4309eadc86b49" sha256: ba48b65a3a97004276ede882e6b838d9667642ff462c95a8bb57ca8a82b6bd25
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.9.18+9" version: "0.9.18+11"
camera_platform_interface: camera_platform_interface:
dependency: transitive dependency: transitive
description: description:
@@ -340,11 +340,11 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: no-etm ref: master
resolved-ref: "88852f3a6304c8f6876b17aaed757111bf8128ae" resolved-ref: "262f41491ec6e558f4799935924b3c222869e698"
url: "https://github.com/lollipopkit/dartssh2" url: "https://github.com/lollipopkit/dartssh2"
source: git source: git
version: "2.9.1-pre" version: "2.12.0"
dbus: dbus:
dependency: transitive dependency: transitive
description: description:
@@ -406,17 +406,21 @@ packages:
description: description:
name: extended_image name: extended_image
sha256: fcefcf3cba32696c639e9e305a790039709d05a7139320b91bb9d300993452e2 sha256: fcefcf3cba32696c639e9e305a790039709d05a7139320b91bb9d300993452e2
sha256: fcefcf3cba32696c639e9e305a790039709d05a7139320b91bb9d300993452e2
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.0" version: "10.0.0"
version: "10.0.0"
extended_image_library: extended_image_library:
dependency: transitive dependency: transitive
description: description:
name: extended_image_library name: extended_image_library
sha256: ae468c31c375064964de11cbb31310a58c4462df6e3bae1a0bc0066f586795d5 sha256: ae468c31c375064964de11cbb31310a58c4462df6e3bae1a0bc0066f586795d5
sha256: ae468c31c375064964de11cbb31310a58c4462df6e3bae1a0bc0066f586795d5
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.0.0" version: "5.0.0"
version: "5.0.0"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:
@@ -446,9 +450,11 @@ packages:
description: description:
name: file_picker name: file_picker
sha256: "8d938fd5c11dc81bf1acd4f7f0486c683fe9e79a0b13419e27730f9ce4d8a25b" sha256: "8d938fd5c11dc81bf1acd4f7f0486c683fe9e79a0b13419e27730f9ce4d8a25b"
sha256: "8d938fd5c11dc81bf1acd4f7f0486c683fe9e79a0b13419e27730f9ce4d8a25b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "9.2.1" version: "9.2.1"
version: "9.2.1"
fixnum: fixnum:
dependency: transitive dependency: transitive
description: description:
@@ -633,10 +639,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_reorderable_grid_view name: flutter_reorderable_grid_view
sha256: a7e0f9d5ba12fd232eb07fbb7f570ae35491045a6bba1858f6eb50c675526dfe sha256: f5db90ae62f8307daef9a884e09ed2d883838592e92185017a4431fe8e78899e
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "5.4.1" version: "5.5.0"
flutter_riverpod: flutter_riverpod:
dependency: transitive dependency: transitive
description: description:
@@ -795,10 +801,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: image name: image
sha256: "13d3349ace88f12f4a0d175eb5c12dcdd39d35c4c109a8a13dfeb6d0bd9e31c3" sha256: "4e973fcf4caae1a4be2fa0a13157aa38a8f9cb049db6529aa00b4d71abc4d928"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "4.5.3" version: "4.5.4"
intl: intl:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -1477,14 +1483,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.2.2" version: "2.2.2"
unorm_dart:
dependency: transitive
description:
name: unorm_dart
sha256: "23d8bf65605401a6a32cff99435fed66ef3dab3ddcad3454059165df46496a3b"
url: "https://pub.dev"
source: hosted
version: "0.3.0"
url_launcher: url_launcher:
dependency: transitive dependency: transitive
description: description:
@@ -1738,3 +1736,4 @@ packages:
sdks: sdks:
dart: ">=3.7.0 <4.0.0" dart: ">=3.7.0 <4.0.0"
flutter: ">=3.29.0" flutter: ">=3.29.0"
flutter: ">=3.29.0"

View File

@@ -34,7 +34,7 @@ dependencies:
dartssh2: dartssh2:
git: git:
url: https://github.com/lollipopkit/dartssh2 url: https://github.com/lollipopkit/dartssh2
ref: no-etm ref: master
circle_chart: circle_chart:
git: git:
url: https://github.com/lollipopkit/circle_chart url: https://github.com/lollipopkit/circle_chart