Optimize desktop view
Optimize logs, requests, connection pages Optimize windows tray auto hide Optimize some details Update core
This commit is contained in:
@@ -23,12 +23,13 @@ class Contributor {
|
||||
class AboutView extends StatelessWidget {
|
||||
const AboutView({super.key});
|
||||
|
||||
_checkUpdate(BuildContext context) async {
|
||||
Future<void> _checkUpdate(BuildContext context) async {
|
||||
final commonScaffoldState = context.commonScaffoldState;
|
||||
if (commonScaffoldState?.mounted != true) return;
|
||||
final data = await commonScaffoldState?.loadingRun<Map<String, dynamic>?>(
|
||||
final data = await globalState.appController.safeRun<Map<String, dynamic>?>(
|
||||
request.checkForUpdate,
|
||||
title: appLocalizations.checkUpdate,
|
||||
needLoading: true,
|
||||
);
|
||||
globalState.appController.checkUpdateResultHandle(
|
||||
data: data,
|
||||
@@ -48,10 +49,10 @@ class AboutView extends StatelessWidget {
|
||||
},
|
||||
),
|
||||
ListItem(
|
||||
title: const Text("Telegram"),
|
||||
title: const Text('Telegram'),
|
||||
onTap: () {
|
||||
globalState.openUrl(
|
||||
"https://t.me/FlClash",
|
||||
'https://t.me/FlClash',
|
||||
);
|
||||
},
|
||||
trailing: const Icon(Icons.launch),
|
||||
@@ -60,7 +61,7 @@ class AboutView extends StatelessWidget {
|
||||
title: Text(appLocalizations.project),
|
||||
onTap: () {
|
||||
globalState.openUrl(
|
||||
"https://github.com/$repository",
|
||||
'https://github.com/$repository',
|
||||
);
|
||||
},
|
||||
trailing: const Icon(Icons.launch),
|
||||
@@ -69,7 +70,7 @@ class AboutView extends StatelessWidget {
|
||||
title: Text(appLocalizations.core),
|
||||
onTap: () {
|
||||
globalState.openUrl(
|
||||
"https://github.com/chen08209/Clash.Meta/tree/FlClash",
|
||||
'https://github.com/chen08209/Clash.Meta/tree/FlClash',
|
||||
);
|
||||
},
|
||||
trailing: const Icon(Icons.launch),
|
||||
@@ -81,14 +82,14 @@ class AboutView extends StatelessWidget {
|
||||
List<Widget> _buildContributorsSection() {
|
||||
const contributors = [
|
||||
Contributor(
|
||||
avatar: "assets/images/avatars/june2.jpg",
|
||||
name: "June2",
|
||||
link: "https://t.me/Jibadong",
|
||||
avatar: 'assets/images/avatars/june2.jpg',
|
||||
name: 'June2',
|
||||
link: 'https://t.me/Jibadong',
|
||||
),
|
||||
Contributor(
|
||||
avatar: "assets/images/avatars/arue.jpg",
|
||||
name: "Arue",
|
||||
link: "https://t.me/xrcm6868",
|
||||
avatar: 'assets/images/avatars/arue.jpg',
|
||||
name: 'Arue',
|
||||
link: 'https://t.me/xrcm6868',
|
||||
),
|
||||
];
|
||||
return generateSection(
|
||||
|
||||
Reference in New Issue
Block a user