Hide 'powered by RustDesk' link on login page

loadPowered() in flutter/lib/common.dart now always returns SizedBox.shrink()
for the SoonDesk fork. The link is misleading for a non-official build
and clutters the login page.

Upstream behavior (controlled by the 'hide-powered-by-me' builtin option)
is preserved in commented-out form for reference.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
xuwenwei
2026-06-10 13:48:03 +08:00
parent 7edd24854f
commit 53ba2d753e
+25 -20
View File
@@ -3690,27 +3690,32 @@ Color? disabledTextColor(BuildContext context, bool enabled) {
} }
Widget loadPowered(BuildContext context) { Widget loadPowered(BuildContext context) {
if (bind.mainGetBuildinOption(key: "hide-powered-by-me") == 'Y') { // Custom fork (SoonDesk): never show the "powered by RustDesk" link.
// For non-official builds this is misleading (we're not "powered by"
// upstream RustDesk), and clutters the login page.
return SizedBox.shrink(); return SizedBox.shrink();
} // (Upstream behavior kept below for reference.)
return MouseRegion( // if (bind.mainGetBuildinOption(key: "hide-powered-by-me") == 'Y') {
cursor: SystemMouseCursors.click, // return SizedBox.shrink();
child: GestureDetector( // }
onTap: () { // return MouseRegion(
launchUrl(Uri.parse('https://rustdesk.com')); // cursor: SystemMouseCursors.click,
}, // child: GestureDetector(
child: Opacity( // onTap: () {
opacity: 0.5, // launchUrl(Uri.parse('https://rustdesk.com'));
child: Text( // },
translate("powered_by_me"), // child: Opacity(
overflow: TextOverflow.clip, // opacity: 0.5,
style: Theme.of(context) // child: Text(
.textTheme // translate("powered_by_me"),
.bodySmall // overflow: TextOverflow.clip,
?.copyWith(fontSize: 9, decoration: TextDecoration.underline), // style: Theme.of(context)
)), // .textTheme
), // .bodySmall
).marginOnly(top: 6); // ?.copyWith(fontSize: 9, decoration: TextDecoration.underline),
// )),
// ),
// ).marginOnly(top: 6);
} }
// max 300 x 60 // max 300 x 60